Sending run time value to custom tag

2006-05-25 Thread Hanmay Udgiri

Hi
I am sending a runtime value to a custom tag.I am sending the value through
bean:write tag
but it is not sending the value.i am attaching the sample code.



here in the tag class it does not take the value passed through bean:write
tag if I pass like below it takes.



I have to use bean:write tag.

--
Thanks and Regards
Hanmayya Udgiri


Sending run time value to custom tag

2006-05-25 Thread Hanmay Udgiri

Hi
I am sending a runtime value to a custom tag.I am sending the value through
bean:write tag
but it is not sending the value.i am attaching the sample code.



here in the tag class it does not take the value passed through bean:write
tag if I pass like below it takes.



I have to use bean:write tag.

--
Thanks and Regards
Hanmayya Udgiri


Re: How can I pass all the request parameters into a bean ?

2006-05-25 Thread Dakota Jack

Of course.  If you want a bean created and to put it into some
specific scope, your form is the place to do it.  You can use other
methods of course.

On 5/25/06, Chaudhary, Harsh <[EMAIL PROTECTED]> wrote:

Isn't that what Struts forms do out of thye box.

Harsh.

-Original Message-
From: Eric Chow [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 3:29 AM
To: Struts User List
Subject: How can I pass all the request parameters into a bean ?


Hello,

How can I pass all the request parameters into a bean ?

For example:

class User {
private int id;
private String name;
private String sex;
private Dat birth;
private boolean status;
}


How can I set all the request parameters into the User if those
parameters name contains any (id, name, sex, birth and status) ?


The utility prototype :

public Object getFormBean(Class formClass, HttpServletRequest request) {


}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax and MVC pattern

2006-05-25 Thread Frank W. Zammetti

Adam Hardy wrote:
So struts marshalls the HTTP request params into a form bean and perhaps 
validates them.
Also struts interfaces with the model when it calls business methods 
from action classes.
But for Ajax requests then there is only ever one possible actionForward 
(or 2 if you count a global error). I can't imagine there's ever any 
need for doing different things with the data - it's (un)marshalled into 
xml, right?


XML in AJAX is completely optional.  The form the result of an AJAX call 
takes is completely up to you... could be XML, could be JSON, could be 
HTML, could be something entirely different that you make up.


There is just as much possibility of multiple forwards for an Action 
mapping that services an AJAX request as one that doesn't... you might 
have a single Action that really performs a couple of different 
functions, resulting in a number of different snippets of HTML being 
returned.  In that case, you would still very likely want to use JSPs to 
render those snippets, in which case you may well have a number of 
forwards.  What happens though is that conceptually, forwards are no 
longer associated, necessarily, with page (or view) transitions.  You 
can *almost* view them as calls to some method that generates a final 
result.


With AJAX, it becomes very natural to think in terms of services rather 
than pages... many AJAX apps load one master HTML document at the start, 
and from then on the changes to the views are just bits of markup that 
get displayed, or data used to generate new bits of markup to be 
displayed.  Then, an AJAX call is really just a request for the server 
to perform some service and send back a result, which may or may not be 
directly displayed to the user.  The transitions between views is 
largely a function of the client (some say the C in MVC moves to the 
client).


Frank


Adam Samere on 24/05/06 22:57, wrote:
I've recently used AJAX in some existing Struts applications making 
use of AjaxTags http://ajaxtags.sourceforge.net/. The Struts 
controller is still very much applicable, in that the Ajax requests 
are made to struts action urls, the action subclasses then delegate 
processing to business objects in the same way as we're used to, and 
finally forward to a JSP for generating the output. The major 
difference is the JSP's generate XML responses, rather than 
HTML/XHTML. Essentially they return either a page fragment or an XML 
item list of some type which is then parsed and stuffed into the 
client side DOM using javascript for immediate display.


Adam Hardy wrote:
I have only a small knowledge of the Ajax frameworks out there and I 
am trying to work out how much an Ajax app would depend on Struts.


I assume the view in an Ajax app is handled at the initial request by 
a JSP with HTML and that afterwards every request from the browser is 
XHR, ideally broken down on a per-data-item/list basis. The view HTML 
is from there on in handled by Ajax. In that case the Controller part 
of MVC would be managed entirely client-side.
Therefore all that struts would have to offer the app would be 
Validator and perhaps a couple of other services.
Or am I totally wrong? Can struts offer the ability to manage the 
Controller part of the app in such a way that the project could have 
two views - one in Ajax and one in JSPs?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Action 1 Framework?

2006-05-25 Thread Frank W. Zammetti
Action 1 Framework (SAF1) is what you used to know as Struts is now 
called.  Not just the latest version, but all of them.  As you say, SAF2 
is what used to be called WebWork.  "Struts" is now an umbrella housing 
three separate frameworks: SAF1, SAF2 and Shale.


Frank

Monkeyden wrote:
I know the "Action 2 Framework" is the WebWork integration branch but is 
the

"Action 1 Framework" just the latest version of traditional Struts?  I
developing my first NEW Struts project since this new name has appeared.



--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: forms in struts-layout tabs ??

2006-05-25 Thread A. Lotfi
Thank you Chaudhary for your time, this is realy a good explaination, what I 
will do is to have 8 forms  :
   
  form1 has a NEXT button that when submitted go to form2 and insert data in a 
table.
   
  form2 has two has two buttons NEXT and PREVIOUS, NEXT , submit to form3 and 
insert data.
  ..
  and so forth.
   
  Please correct me if I am wrong.
   
  Please if there is an article or an example like this , I would appreciate if 
you can help.
   
  Thank you.

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:
  What you say is definitely doable but consider this. You would need to save 
the data from each screen till the end of the screens i.e. the 8th screen. You 
can do this by saving the data in the session (not advisable as the session 
object will be huge). Or you could pass data as hidden fields onto each 
subsequent page. A lot of work. Plus this ties your data to your front end. So, 
e.g. if you change the name of a field representing a piece of data, you would 
need to make the corresponding changes on every JSP page too. Ugh!

Also, if the user decides to navigate away from the screen while filling oout 
the forms, his session is timed out or he closes the browser. If he was on the 
8th screen, he would lose all 7 screens of previous data.

An alternative design would be to have separate actions and struts forms for 
each page or even have 1 big struts form for all the pages and multiple actions 
accessing that form. And save the data on each submit, tab etc.

Harsh.

-Original Message-
From: A. Lotfi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 3:53 PM
To: user@struts.apache.org
Subject: forms in struts-layout tabs ??


Hi,
I have 8 forms (every form will be stored in a separate table), I am wondering 
if it is possible to have one jsp page with 8 tabs , fill up the form in the 
first tab, move to other tabs and fill forms and at the end press a one submit 
button to save data ( from these forms) to the database.

Thank you.


-
Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min 
with Yahoo! Messenger with Voice.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail Beta.

Action 1 Framework?

2006-05-25 Thread Monkeyden

I know the "Action 2 Framework" is the WebWork integration branch but is the
"Action 1 Framework" just the latest version of traditional Struts?  I
developing my first NEW Struts project since this new name has appeared.


Re: Ajax and MVC pattern

2006-05-25 Thread Adam Hardy
So struts marshalls the HTTP request params into a form bean and perhaps validates them. 

Also struts interfaces with the model when it calls business methods from action classes. 

But for Ajax requests then there is only ever one possible actionForward (or 2 if you count a global error). I can't imagine there's ever any need for doing different things with the data - it's (un)marshalled into xml, right? 


Adam Samere on 24/05/06 22:57, wrote:
I've recently used AJAX in some existing Struts applications making use 
of AjaxTags http://ajaxtags.sourceforge.net/. The Struts controller is 
still very much applicable, in that the Ajax requests are made to struts 
action urls, the action subclasses then delegate processing to business 
objects in the same way as we're used to, and finally forward to a JSP 
for generating the output. The major difference is the JSP's generate 
XML responses, rather than HTML/XHTML. Essentially they return either a 
page fragment or an XML item list of some type which is then parsed and 
stuffed into the client side DOM using javascript for immediate display.


Adam Hardy wrote:
I have only a small knowledge of the Ajax frameworks out there and I 
am trying to work out how much an Ajax app would depend on Struts.


I assume the view in an Ajax app is handled at the initial request by 
a JSP with HTML and that afterwards every request from the browser is 
XHR, ideally broken down on a per-data-item/list basis. The view HTML 
is from there on in handled by Ajax. In that case the Controller part 
of MVC would be managed entirely client-side.
Therefore all that struts would have to offer the app would be 
Validator and perhaps a couple of other services.
Or am I totally wrong? Can struts offer the ability to manage the 
Controller part of the app in such a way that the project could have 
two views - one in Ajax and one in JSPs?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: forms in struts-layout tabs ??

2006-05-25 Thread Chaudhary, Harsh
What you say is definitely doable but consider this. You would need to save the 
data from each screen till the end of the screens i.e. the 8th screen. You can 
do this by saving the data in the session (not advisable as the session object 
will be huge). Or you could pass data as hidden fields onto each subsequent 
page. A lot of work. Plus this ties your data to your front end. So, e.g. if 
you change the name of a field representing a piece of data, you would need to 
make the corresponding changes on every JSP page too. Ugh!

Also, if the user decides to navigate away from the screen while filling oout 
the forms, his session is timed out or he closes the browser. If he was on the 
8th screen, he would lose all 7 screens of previous data.

An alternative design would be to have separate actions and struts forms for 
each page or even have 1 big struts form for all the pages and multiple actions 
accessing that form. And save the data on each submit, tab etc.

Harsh.

-Original Message-
From: A. Lotfi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 3:53 PM
To: user@struts.apache.org
Subject: forms in struts-layout tabs ??


Hi,
  I have 8 forms (every form will be stored in a separate table), I am 
wondering if it is possible to have one jsp page with 8 tabs , fill up the form 
in the first tab, move to other tabs and fill forms and at the end press a one 
submit button to save data  ( from these forms) to the database.
   
  Thank you.


-
Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2¢/min 
with Yahoo! Messenger with Voice.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



forms in struts-layout tabs ??

2006-05-25 Thread A. Lotfi
Hi,
  I have 8 forms (every form will be stored in a separate table), I am 
wondering if it is possible to have one jsp page with 8 tabs , fill up the form 
in the first tab, move to other tabs and fill forms and at the end press a one 
submit button to save data  ( from these forms) to the database.
   
  Thank you.


-
Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2¢/min 
with Yahoo! Messenger with Voice.

RE: How Validation framework's getVarValue method works?

2006-05-25 Thread Yildiz Terkesli
Hi Harsh,

Thanks for the solution.
It works now.

Yildiz

--- "Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:

> I am sorry I wasn't clear enough in my reply. Here's
> what you need to
> do:
> 
> String explainUrgency =
> field.getVarValue("explainUrgency");
> String whatever =
> ValidatorUtils.getValueAsString(bean,
> explainUrgency);
> 
> Harsh.
> 
> -Original Message-
> From: Yildiz Terkesli [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 25, 2006 2:04 PM
> To: user@struts.apache.org
> Subject: How Validation framework's getVarValue
> method works?
> 
> 
> Hi,
> I am using Apache Struts and Validator framework for
> my current project. I have encountered this problem
> when I tried to create my own validation rule:
> 
> I want to validate a field against another field.
> For
> this purpose I have created my own validation
> method,
> created new XML file instead of changing the
> original
> validator-rules.xml file, and updated validation.xml
> file. Everything has been fine so far. I have
> configured validation for the new rule in
> validation.xml as follows:
> 
> 
> 
> 
> explainUrgency
> urgency
> 
> 
> 
> Here, the name of first field is "priority" and the
> second is "urgency".
> 
> When I use:
> 
> String explainUrgency =
> field.getVarValue("explainUrgency");
> 
> in my own validation method to get the real value of
> the field urgency, I get the text "urgency". What
> should I do to get the value of the field "urgency"
> in
> the form?
> 
> Any help is appreciated.
> Thanks 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple checkboxs in jsp using struts tags.

2006-05-25 Thread Albert L. Sapp

[EMAIL PROTECTED] wrote:


Albert L. Sapp asked:
 

This is my first post so I will try to make it short.  I am trying to 
use the logic:iterate and html:multibox.  I found what I 
thought was a 
good example through a google search, but I just can't get it to work.


Here is the exception I get:  javax.servlet.ServletException: Cannot 
find bean unit in any scopeI understand the error, but don't know 
how to fix it.


The example I am following said to setup the tags as follows:


   
  
   
   
   



[snip]

I think you may need a  tag after the  to
make the value available.  See
http://struts.apache.org/struts-action/struts-taglib/tlddoc/bean/define.
html

I've blocked out much of this from my memory because JSTL is so much
easier.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

Thanks, George.  We are using JSTL in other JSP.  I will try that in 
place of the iterate tag.


Al



Re: How Validation framework’s getVarValue method works?

2006-05-25 Thread Niall Pemberton

On 5/25/06, Yildiz Terkesli <[EMAIL PROTECTED]> wrote:

Hi,
I am using Apache Struts and Validator framework for
my current project. I have encountered this problem
when I tried to create my own validation rule:

I want to validate a field against another field. For
this purpose I have created my own validation method,
created new XML file instead of changing the original
validator-rules.xml file, and updated validation.xml
file. Everything has been fine so far. I have
configured validation for the new rule in
validation.xml as follows:




explainUrgency
urgency



Here, the name of first field is "priority" and the
second is "urgency".

When I use:

String explainUrgency =
field.getVarValue("explainUrgency");

in my own validation method to get the real value of
the field urgency, I get the text "urgency". What
should I do to get the value of the field "urgency" in
the form?


Typically you would use the  element if you wanted to make the
name of the second field "configurable" and then use the configured
property name along with introspection to get the value from the
ActionForm.

If for this rule the field is always going to be "urgency" then you
don't need to use a  element at all - just access the property
directly from the ActionForm passed to your validation method.

Niall



Any help is appreciated.
Thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multiple checkboxs in jsp using struts tags.

2006-05-25 Thread George.Dinwiddie
Albert L. Sapp asked:
> This is my first post so I will try to make it short.  I am trying to 
> use the logic:iterate and html:multibox.  I found what I 
> thought was a 
> good example through a google search, but I just can't get it to work.
> 
> Here is the exception I get:  javax.servlet.ServletException: Cannot 
> find bean unit in any scopeI understand the error, but don't know 
> how to fix it.
> 
> The example I am following said to setup the tags as follows:
> 
> 
> 
>
> 
> 

 [snip]

I think you may need a  tag after the  to
make the value available.  See
http://struts.apache.org/struts-action/struts-taglib/tlddoc/bean/define.
html

I've blocked out much of this from my memory because JSTL is so much
easier.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Validation for second field must greater than the first field

2006-05-25 Thread Chaudhary, Harsh
Yeah. There is this date comparator at:
http://jakarta.apache.org/commons/validator/apidocs/org/apache/commons/validator/routines/DateValidator.html

It has methods like compareDates etc. But you will need to call this method 
from a Java class and a custom validator seems like a good place. Considering 
it gives you access to a bunch of objects for free like the form bean, fields, 
the request object, errors object etc. You could probably do it in a separate 
class cueing off of the data from the form bean, but I think it would be much 
harder. 


Harsh.

-Original Message-
From: Carl Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 2:31 PM
To: Struts Users Mailing List
Subject: RE: Validation for second field must greater than the first field


Harsh, Thanks for the quick response.
   
  I was seeking if  Struts has the internal validator do this things. If not, 
then I agree with you in that I need to write my own custom validator easily. 
But I prefer if Struts already has this sort of comparison validator.
  

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:
  The solution is to write a custom validator if you want to do it server side 
using validator. In your custom validator, create 2 calendars, one each for 
start date and end date. Then use the method call "before" or "after" on these 
calendar.

Harsh. Man I got a lot of free time today.

-Original Message-
From: Carl Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 2:20 PM
To: Struts Users Mailing List
Subject: Validation for second field must greater than the first field


I am not sure if this is workable, but my requirement was that 

Two Fields, startDate and endDate, I need to validate the endDate is 
greater/older than the startDate. Is this something workable/configurable using 
struts validator?

Thanks.


-
Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min with Yahoo! 
Messenger with Voice.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Validation for second field must greater than the first field

2006-05-25 Thread Carl Smith
Harsh, Thanks for the quick response.
   
  I was seeking if  Struts has the internal validator do this things. If not, 
then I agree with you in that I need to write my own custom validator easily. 
But I prefer if Struts already has this sort of comparison validator.
  

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:
  The solution is to write a custom validator if you want to do it server side 
using validator. In your custom validator, create 2 calendars, one each for 
start date and end date. Then use the method call "before" or "after" on these 
calendar.

Harsh. Man I got a lot of free time today.

-Original Message-
From: Carl Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 2:20 PM
To: Struts Users Mailing List
Subject: Validation for second field must greater than the first field


I am not sure if this is workable, but my requirement was that 

Two Fields, startDate and endDate, I need to validate the endDate is 
greater/older than the startDate. Is this something workable/configurable using 
struts validator?

Thanks.


-
Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min with Yahoo! 
Messenger with Voice.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.

RE: Validation for second field must greater than the first field

2006-05-25 Thread Chaudhary, Harsh
The solution is to write a custom validator if you want to do it server side 
using validator. In your custom validator, create 2 calendars, one each for 
start date and end date. Then use the method call "before" or "after" on these 
calendar.

Harsh. Man I got a lot of free time today.

-Original Message-
From: Carl Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 2:20 PM
To: Struts Users Mailing List
Subject: Validation for second field must greater than the first field


I am not sure if this is workable, but my requirement was that 
   
  Two Fields, startDate and endDate, I need to validate the endDate is 
greater/older than the startDate. Is this something workable/configurable using 
struts validator?
   
  Thanks.


-
Ring'em or ping'em. Make  PC-to-phone calls as low as 1¢/min with Yahoo! 
Messenger with Voice.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Multiple checkboxs in jsp using struts tags.

2006-05-25 Thread Albert L. Sapp

Hi, everyone.

This is my first post so I will try to make it short.  I am trying to 
use the logic:iterate and html:multibox.  I found what I thought was a 
good example through a google search, but I just can't get it to work.


Here is the exception I get:  javax.servlet.ServletException: Cannot 
find bean unit in any scopeI understand the error, but don't know 
how to fix it.


The example I am following said to setup the tags as follows:


   
  
   
  


My form for the jsp in the struts-config.xml is bannerFeedForm.  
bannerFeedForm has a bannerUnits array of the type Unit and a 
selectedUnits array of the type String.  I populate the bannerUnits 
array from a db query in the action.  If you need the form code or the 
relevant action code, let me know.


I believe my problem is that the id attribute of iterate is looking for 
a Unit bean in the page scope.  However, the only bean in scope at the 
time is the bannerFeedForm.  I figure I am missing something here, but 
am not sure what.  I tried the following changes with the same results, 
of course.



   
  
   
  


Should id be set to something else?  If not, how do i get the needed 
bean in scope?  In all the programming up to now we use 
request.setAttribute to pass information to the jsp.


I am really a newbie at this and can't spend much more time trying to 
get it to work.  Another programmer suggested just hardcoding all the 
checkboxs, but I hate hardcoding something when I know I should be able 
to do it dynamically.  Any help to avoid this would be appreciated.


Al


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How Validation framework's getVarValue method works?

2006-05-25 Thread Chaudhary, Harsh
I am sorry I wasn't clear enough in my reply. Here's what you need to
do:

String explainUrgency = field.getVarValue("explainUrgency");
String whatever = ValidatorUtils.getValueAsString(bean, explainUrgency);

Harsh.

-Original Message-
From: Yildiz Terkesli [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 2:04 PM
To: user@struts.apache.org
Subject: How Validation framework's getVarValue method works?


Hi,
I am using Apache Struts and Validator framework for
my current project. I have encountered this problem
when I tried to create my own validation rule:

I want to validate a field against another field. For
this purpose I have created my own validation method,
created new XML file instead of changing the original
validator-rules.xml file, and updated validation.xml
file. Everything has been fine so far. I have
configured validation for the new rule in
validation.xml as follows:




explainUrgency
urgency



Here, the name of first field is "priority" and the
second is "urgency".

When I use:

String explainUrgency =
field.getVarValue("explainUrgency");

in my own validation method to get the real value of
the field urgency, I get the text "urgency". What
should I do to get the value of the field "urgency" in
the form?

Any help is appreciated.
Thanks 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validation for second field must greater than the first field

2006-05-25 Thread Carl Smith
I am not sure if this is workable, but my requirement was that 
   
  Two Fields, startDate and endDate, I need to validate the endDate is 
greater/older than the startDate. Is this something workable/configurable using 
struts validator?
   
  Thanks.


-
Ring'em or ping'em. Make  PC-to-phone calls as low as 1¢/min with Yahoo! 
Messenger with Voice.

RE: How Validation framework's getVarValue method works?

2006-05-25 Thread Chaudhary, Harsh
Do this to get the value in urgency field.

String year = ValidatorUtils.getValueAsString(bean, explainUrgency);

Where bean is:
public static boolean validateYourMethod(Object bean, ValidatorAction
va, Field field, ActionMessages errors, Validator v, HttpServletRequest
request)

Harsh.

-Original Message-
From: Yildiz Terkesli [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 2:04 PM
To: user@struts.apache.org
Subject: How Validation framework's getVarValue method works?


Hi,
I am using Apache Struts and Validator framework for
my current project. I have encountered this problem
when I tried to create my own validation rule:

I want to validate a field against another field. For
this purpose I have created my own validation method,
created new XML file instead of changing the original
validator-rules.xml file, and updated validation.xml
file. Everything has been fine so far. I have
configured validation for the new rule in
validation.xml as follows:




explainUrgency
urgency



Here, the name of first field is "priority" and the
second is "urgency".

When I use:

String explainUrgency =
field.getVarValue("explainUrgency");

in my own validation method to get the real value of
the field urgency, I get the text "urgency". What
should I do to get the value of the field "urgency" in
the form?

Any help is appreciated.
Thanks 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ValidatorActionForm vs ValidatorForm

2006-05-25 Thread pantichd

Makes sense. At least reading it here. 

I'll try it out and see if it still makes sense when I'm doing code.  : )

Thanks a lot!
--
View this message in context: 
http://www.nabble.com/ValidatorActionForm+vs+ValidatorForm-t1682623.html#a4564295
Sent from the Struts - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How Validation framework�s getVarValue method works?

2006-05-25 Thread Yildiz Terkesli
Hi,
I am using Apache Struts and Validator framework for
my current project. I have encountered this problem
when I tried to create my own validation rule:

I want to validate a field against another field. For
this purpose I have created my own validation method,
created new XML file instead of changing the original
validator-rules.xml file, and updated validation.xml
file. Everything has been fine so far. I have
configured validation for the new rule in
validation.xml as follows:




explainUrgency
urgency



Here, the name of first field is “priority” and the
second is “urgency”.

When I use:

String explainUrgency =
field.getVarValue("explainUrgency");

in my own validation method to get the real value of
the field urgency, I get the text “urgency”. What
should I do to get the value of the field “urgency” in
the form?

Any help is appreciated.
Thanks 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Data Format/Parse

2006-05-25 Thread Good, Don
We've been using FormDef struts plug-in 
(http://www.rabago.net/struts/formdef/index.htm) to format data going to the 
form and parsing the data before saving to the database.  It seems to be 
relatively straight-forward and does what we need it to do.  What other methods 
are there for doing this process?  Is there one definitive way to handle these 
tasks? What's everybody else doing for formatting/parsing data?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ValidatorActionForm vs ValidatorForm

2006-05-25 Thread Chaudhary, Harsh
Use ValidatorActionForm when you want to key the validation by the
Actions i.e. certain fields will be validated if a certain action is
called. Suppose you have a big Struts Form which serves as the form for
a number of actions e.g. updateClient.do, deleteClient.do,
loginClient.do etc.

Suppose your struts form is MyForm.java

You want only certain fields to be validated on a call to a particular
action. Use ValidatorActionForm. Your entry would look like this in
validation.xml:


  
  
bla...bla...
  



  
  
bla...bla...
  


Whereas if you use ValidatorForm, the entire form would be validated as
your entry in validation.xml would look like:


  
bla...bla...
  
  
bla...bla...
  


Hope that clears things up a bit.

Harsh.

-Original Message-
From: pantichd [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 1:35 PM
To: user@struts.apache.org
Subject: ValidatorActionForm vs ValidatorForm



Hello,

I'm struggling to understand the difference between the
ValidatorActionForm
and the ValidatorForm. 

The main difference I find in API is that the key passed into the
ValidatorForm "is the action element's 'name' attribute from the
struts-config.xml" and the key passed into the ValidatorActionForm "is
the
action element's 'path' attribute from the struts-config.xml"

I understand that part but not the significance. 
  
In what situation(s) would I choose one over the other? 

Thanks in advance for any responses. Sorry for being dense.  : )

David.
--
View this message in context:
http://www.nabble.com/ValidatorActionForm+vs+ValidatorForm-t1682623.html
#a4563821
Sent from the Struts - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ValidatorActionForm vs ValidatorForm

2006-05-25 Thread pantichd

Hello,

I'm struggling to understand the difference between the ValidatorActionForm
and the ValidatorForm. 

The main difference I find in API is that the key passed into the
ValidatorForm "is the action element's 'name' attribute from the
struts-config.xml" and the key passed into the ValidatorActionForm "is the
action element's 'path' attribute from the struts-config.xml"

I understand that part but not the significance. 
  
In what situation(s) would I choose one over the other? 

Thanks in advance for any responses. Sorry for being dense.  : )

David.
--
View this message in context: 
http://www.nabble.com/ValidatorActionForm+vs+ValidatorForm-t1682623.html#a4563821
Sent from the Struts - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts with Eclipse 3.1

2006-05-25 Thread Manfred Wolff

Take maven and you have no problem with any IDE or development environment.

Manfred

Dave Newton wrote:
> [EMAIL PROTECTED] wrote:
>   
>> My point is that Eclipse does not, in the base IDE, have the knowledge to 
>> build and deploy a web-app.  You can get that capability with ANT, which 
>> gives you all the flexibility in the world about how you arrange your 
>> project, or with a plugin, which requires you to arrange your project in a 
>> particular way.
>>   
>> 
>
> Just an FYI, things are still somewhat flexible within a project under
> MyEclipse, if your deployment doesn't reach in to non-WEB-INF dirs.
> (Some of the functionality comes from stock Eclipse.)
>
> For example, on several projects we've had multiple source directories
> (like, say, a unit test source dir, a generated java source dir, etc.)
>
> You can set output directories for each source directory, so the
> "regular" source dir and the generated source dir get dropped into
> WEB-INF classes for automagic deployment, whereas the unit-test stuff
> hangs out elsewhere, accessible to the ant file but not deployed by
> MyEclipse.
>
> We still tended to use ant stuff for creating the war files etc. because
> we all hate IDE lock-in.
>
> Dave
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>   


-- 
===
Dipl.-Inf. Manfred Wolff
Software Engineer
Fon  : +49 421 534522
Fax  : +49 421 4314578
Mobil: +49 173 2494181
---
http://www.manfred-wolff.de
http://www.struts-it.org
---


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts with Eclipse 3.1

2006-05-25 Thread Dave Newton
[EMAIL PROTECTED] wrote:
> My point is that Eclipse does not, in the base IDE, have the knowledge to 
> build and deploy a web-app.  You can get that capability with ANT, which 
> gives you all the flexibility in the world about how you arrange your 
> project, or with a plugin, which requires you to arrange your project in a 
> particular way.
>   

Just an FYI, things are still somewhat flexible within a project under
MyEclipse, if your deployment doesn't reach in to non-WEB-INF dirs.
(Some of the functionality comes from stock Eclipse.)

For example, on several projects we've had multiple source directories
(like, say, a unit test source dir, a generated java source dir, etc.)

You can set output directories for each source directory, so the
"regular" source dir and the generated source dir get dropped into
WEB-INF classes for automagic deployment, whereas the unit-test stuff
hangs out elsewhere, accessible to the ant file but not deployed by
MyEclipse.

We still tended to use ant stuff for creating the war files etc. because
we all hate IDE lock-in.

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Struts with Eclipse 3.1

2006-05-25 Thread Martin Kindler
I do agree.

Martin

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 25. Mai 2006 19:05
> An: user@struts.apache.org; [EMAIL PROTECTED]
> Betreff: RE: Struts with Eclipse 3.1
> 
> 
> My point is that Eclipse does not, in the base IDE, have the 
> knowledge to build and deploy a web-app.  You can get that 
> capability with ANT, which gives you all the flexibility in 
> the world about how you arrange your project, or with a 
> plugin, which requires you to arrange your project in a 
> particular way.
> 
> > -Original Message-
> > From: Martin Kindler [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 25, 2006 12:59 PM
> > To: 'Struts Users Mailing List'
> > Subject: AW: Struts with Eclipse 3.1
> > 
> > 
> > I have not really followed this stream, but just to develop a
> > Struts (action
> > 1.x) based app with Eclipse 3.x
> > does not require something special. Just create the project, 
> > add the Struts jars to it (do not forget the build path) and go.
> > 
> > If you want to have integrated debugging with Tomcat you can
> > use the Sysdeo plugin.
> > 
> > 
> > Martin
> > 
> > > -Ursprüngliche Nachricht-
> > > Von: [EMAIL PROTECTED] 
> > > [mailto:[EMAIL PROTECTED]
> > > Gesendet: Donnerstag, 25. Mai 2006 18:48
> > > An: user@struts.apache.org
> > > Betreff: RE: Struts with Eclipse 3.1
> > > 
> > > 
> > > If you don't want to build with ANT (or equivalent) then 
> I think you 
> > > must use one of the plugins with webapplication support.  
> These, in 
> > > my experience (mostly with MyEclipse), require particular 
> layouts of 
> > > the source for it to work.
> > > 
> > > It seems to be your choice which work you want to do.
> > > 
> > > > -Original Message-
> > > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, May 25, 2006 12:33 PM
> > > > To: Struts Users Mailing List
> > > > Subject: Re: Struts with Eclipse 3.1
> > > > 
> > > > 
> > > > But I donnot have an ANT build file. for my project, we
> > donot have
> > > > an ANT build file yet..
> > > > 
> > > > Miguel Galves <[EMAIL PROTECTED]> wrote:  just for the
> > record, I use
> > > > a plain Java project, with an appropriate ANT build file
> > that builds
> > > > and deploys teh struts system for me.
> > > > 
> > > > It works fine.
> > > > 
> > > > Miguel
> > > > 
> > > > On 5/25/06, Maya menon wrote:
> > > > >
> > > > > No. It wont work. when I do that, it asks for a folder to
> > > > import to.
> > > > > When I type a new name in says, specified project
> > doesnt exist and
> > > > > stops there...
> > > > >
> > > > > "Chaudhary, Harsh" wrote: Sounds like something
> > > > > wrong with the import you did. Why don't you do a fresh
> > > > import without
> > > > > creating a project first. Then when you import, it would
> > > > prompt you to
> > > > > specify a project at which point, you can create a 
> new project.
> > > > > Hopefully this will merge the two and generate a 
> singular file 
> > > > > structure.
> > > > >
> > > > > Harsh.
> > > > >
> > > > > -Original Message-
> > > > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > > > Sent: Thursday, May 25, 2006 10:54 AM
> > > > > To: Struts Users Mailing List
> > > > > Subject: RE: Struts with Eclipse 3.1
> > > > >
> > > > >
> > > > > Yes, I was trying that.
> > > > >
> > > > > I created an empty "Web project" in eclipse and imported
> > > > > struts-sample.war. But this created two WEB-INF 
> > directories and 2
> > > > > web.xml files. Looks like when a web project is first
> > created, it
> > > > > already creates the web.xml and web-inf directory,a nd
> > > when the war
> > > > > file gets imported, it creates it again.
> > > > >
> > > > > So, I created a simple Java project and imported the
> > war file. But
> > > > > functionally, will it work. What other suggestions ?
> > > > >
> > > > > "Chaudhary, Harsh" wrote:
> > > > > A sample web project is bundeled with the struts
> > > > distribution at like:
> > > > > \struts-1.2.8-bin\struts-1.2.8-bin\webapps
> > > > > Its called struts-examples.war. Get that running and
> > then you can
> > > > > reuse that code to get started. Harsh.
> > > > >
> > > > > -Original Message-
> > > > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > > > Sent: Thursday, May 25, 2006 10:31 AM
> > > > > To: Struts Users Mailing List
> > > > > Subject: RE: Struts with Eclipse 3.1
> > > > >
> > > > >
> > > > > Thanks Harsh. I also dont care about ide support.
> > > > >
> > > > > But think you have an existing web project and you want to
> > > > use struts
> > > > > files. How do you do that ?
> > > > >
> > > > > In my case, I have a web project in eclipse [created using
> > > > eclipse 3.1
> > > > > and eclipse web tools platofrm]. Now to this project I have
> > > > added the
> > > > > struts zip file. How do I make use of the struts config
> > > > files, action
> > > > > classes etc ?
> > > > >
> > > > >
> > > > >
> > > > > "Chaudhary, H

RE: Struts with Eclipse 3.1

2006-05-25 Thread George.Dinwiddie
My point is that Eclipse does not, in the base IDE, have the knowledge to build 
and deploy a web-app.  You can get that capability with ANT, which gives you 
all the flexibility in the world about how you arrange your project, or with a 
plugin, which requires you to arrange your project in a particular way.

> -Original Message-
> From: Martin Kindler [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 25, 2006 12:59 PM
> To: 'Struts Users Mailing List'
> Subject: AW: Struts with Eclipse 3.1
> 
> 
> I have not really followed this stream, but just to develop a 
> Struts (action
> 1.x) based app with Eclipse 3.x
> does not require something special. Just create the project, 
> add the Struts jars to it (do not forget the build path) and go.
> 
> If you want to have integrated debugging with Tomcat you can 
> use the Sysdeo plugin.
> 
> 
> Martin
> 
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] 
> > Gesendet: Donnerstag, 25. Mai 2006 18:48
> > An: user@struts.apache.org
> > Betreff: RE: Struts with Eclipse 3.1
> > 
> > 
> > If you don't want to build with ANT (or equivalent) then I
> > think you must use one of the plugins with webapplication 
> > support.  These, in my experience (mostly with MyEclipse), 
> > require particular layouts of the source for it to work.
> > 
> > It seems to be your choice which work you want to do.
> > 
> > > -Original Message-
> > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, May 25, 2006 12:33 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: Struts with Eclipse 3.1
> > > 
> > > 
> > > But I donnot have an ANT build file. for my project, we 
> donot have 
> > > an ANT build file yet..
> > > 
> > > Miguel Galves <[EMAIL PROTECTED]> wrote:  just for the 
> record, I use 
> > > a plain Java project, with an appropriate ANT build file 
> that builds 
> > > and deploys teh struts system for me.
> > > 
> > > It works fine.
> > > 
> > > Miguel
> > > 
> > > On 5/25/06, Maya menon wrote:
> > > >
> > > > No. It wont work. when I do that, it asks for a folder to
> > > import to.
> > > > When I type a new name in says, specified project 
> doesnt exist and 
> > > > stops there...
> > > >
> > > > "Chaudhary, Harsh" wrote: Sounds like something
> > > > wrong with the import you did. Why don't you do a fresh
> > > import without
> > > > creating a project first. Then when you import, it would
> > > prompt you to
> > > > specify a project at which point, you can create a new project. 
> > > > Hopefully this will merge the two and generate a singular file 
> > > > structure.
> > > >
> > > > Harsh.
> > > >
> > > > -Original Message-
> > > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, May 25, 2006 10:54 AM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: Struts with Eclipse 3.1
> > > >
> > > >
> > > > Yes, I was trying that.
> > > >
> > > > I created an empty "Web project" in eclipse and imported 
> > > > struts-sample.war. But this created two WEB-INF 
> directories and 2 
> > > > web.xml files. Looks like when a web project is first 
> created, it 
> > > > already creates the web.xml and web-inf directory,a nd
> > when the war
> > > > file gets imported, it creates it again.
> > > >
> > > > So, I created a simple Java project and imported the 
> war file. But 
> > > > functionally, will it work. What other suggestions ?
> > > >
> > > > "Chaudhary, Harsh" wrote:
> > > > A sample web project is bundeled with the struts
> > > distribution at like:
> > > > \struts-1.2.8-bin\struts-1.2.8-bin\webapps
> > > > Its called struts-examples.war. Get that running and 
> then you can 
> > > > reuse that code to get started. Harsh.
> > > >
> > > > -Original Message-
> > > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, May 25, 2006 10:31 AM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: Struts with Eclipse 3.1
> > > >
> > > >
> > > > Thanks Harsh. I also dont care about ide support.
> > > >
> > > > But think you have an existing web project and you want to
> > > use struts
> > > > files. How do you do that ?
> > > >
> > > > In my case, I have a web project in eclipse [created using
> > > eclipse 3.1
> > > > and eclipse web tools platofrm]. Now to this project I have
> > > added the
> > > > struts zip file. How do I make use of the struts config
> > > files, action
> > > > classes etc ?
> > > >
> > > >
> > > >
> > > > "Chaudhary, Harsh" wrote:
> > > > Sure you can do that. But you would not have any IDE support. 
> > > > Personally I don't care much for IDE support as all you need is 
> > > > entries in struts-cofig.xml, an Action class, a Struts
> > form and an
> > > > HTML or JSP page.
> > > >
> > > > Harsh.
> > > >
> > > > -Original Message-
> > > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, May 25, 2006 10:17 AM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: Struts with Eclipse 3.1
> > > >

AW: Struts with Eclipse 3.1

2006-05-25 Thread Martin Kindler
I have not really followed this stream, but just to develop a Struts (action
1.x) based app with Eclipse 3.x
does not require something special. Just create the project, add the Struts
jars to it (do not forget the build path) and go.

If you want to have integrated debugging with Tomcat you can use the Sysdeo
plugin.


Martin

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 25. Mai 2006 18:48
> An: user@struts.apache.org
> Betreff: RE: Struts with Eclipse 3.1
> 
> 
> If you don't want to build with ANT (or equivalent) then I 
> think you must use one of the plugins with webapplication 
> support.  These, in my experience (mostly with MyEclipse), 
> require particular layouts of the source for it to work.
> 
> It seems to be your choice which work you want to do.
> 
> > -Original Message-
> > From: Maya menon [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 25, 2006 12:33 PM
> > To: Struts Users Mailing List
> > Subject: Re: Struts with Eclipse 3.1
> > 
> > 
> > But I donnot have an ANT build file. for my project, we donot
> > have an ANT build file yet..
> > 
> > Miguel Galves <[EMAIL PROTECTED]> wrote:  just for the
> > record, I use a plain Java project, with an appropriate ANT 
> > build file that builds and deploys teh struts system for me.
> > 
> > It works fine.
> > 
> > Miguel
> > 
> > On 5/25/06, Maya menon wrote:
> > >
> > > No. It wont work. when I do that, it asks for a folder to
> > import to.
> > > When I type a new name in says, specified project doesnt exist and
> > > stops there...
> > >
> > > "Chaudhary, Harsh" wrote: Sounds like something
> > > wrong with the import you did. Why don't you do a fresh
> > import without
> > > creating a project first. Then when you import, it would
> > prompt you to
> > > specify a project at which point, you can create a new project.
> > > Hopefully this will merge the two and generate a singular file 
> > > structure.
> > >
> > > Harsh.
> > >
> > > -Original Message-
> > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, May 25, 2006 10:54 AM
> > > To: Struts Users Mailing List
> > > Subject: RE: Struts with Eclipse 3.1
> > >
> > >
> > > Yes, I was trying that.
> > >
> > > I created an empty "Web project" in eclipse and imported
> > > struts-sample.war. But this created two WEB-INF directories and 2 
> > > web.xml files. Looks like when a web project is first created, it 
> > > already creates the web.xml and web-inf directory,a nd 
> when the war 
> > > file gets imported, it creates it again.
> > >
> > > So, I created a simple Java project and imported the war file. But
> > > functionally, will it work. What other suggestions ?
> > >
> > > "Chaudhary, Harsh" wrote:
> > > A sample web project is bundeled with the struts
> > distribution at like:
> > > \struts-1.2.8-bin\struts-1.2.8-bin\webapps
> > > Its called struts-examples.war. Get that running and then you can
> > > reuse that code to get started. Harsh.
> > >
> > > -Original Message-
> > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, May 25, 2006 10:31 AM
> > > To: Struts Users Mailing List
> > > Subject: RE: Struts with Eclipse 3.1
> > >
> > >
> > > Thanks Harsh. I also dont care about ide support.
> > >
> > > But think you have an existing web project and you want to
> > use struts
> > > files. How do you do that ?
> > >
> > > In my case, I have a web project in eclipse [created using
> > eclipse 3.1
> > > and eclipse web tools platofrm]. Now to this project I have
> > added the
> > > struts zip file. How do I make use of the struts config
> > files, action
> > > classes etc ?
> > >
> > >
> > >
> > > "Chaudhary, Harsh" wrote:
> > > Sure you can do that. But you would not have any IDE support.
> > > Personally I don't care much for IDE support as all you need is 
> > > entries in struts-cofig.xml, an Action class, a Struts 
> form and an 
> > > HTML or JSP page.
> > >
> > > Harsh.
> > >
> > > -Original Message-
> > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, May 25, 2006 10:17 AM
> > > To: Struts Users Mailing List
> > > Subject: RE: Struts with Eclipse 3.1
> > >
> > >
> > > Ok Thanks. Can I just import the zip file to my project and start
> > > using it ?
> > >
> > > Maya
> > >
> > > "Chaudhary, Harsh" wrote:
> > > Sure you can. Just include the Struts lib files in your 
> project. If
> > > you are talking about IDE support for Struts, then I 
> would suggest:
> > > http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
> > > This is a tested plug-in for Struts on eclipse. It costs 
> about $30 -
> > > $40.
> > >
> > > There is another Struts plug-in for eclipse available at:
> > > http://download.eclipse.org/webtools/downloads/
> > >
> > > This one is free. I have used it myself and its pretty good too.
> > >
> > > Harsh.
> > >
> > > -Original Message-
> > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, 

RE: Struts with Eclipse 3.1

2006-05-25 Thread George.Dinwiddie
If you don't want to build with ANT (or equivalent) then I think you must use 
one of the plugins with webapplication support.  These, in my experience 
(mostly with MyEclipse), require particular layouts of the source for it to 
work.

It seems to be your choice which work you want to do.

> -Original Message-
> From: Maya menon [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 25, 2006 12:33 PM
> To: Struts Users Mailing List
> Subject: Re: Struts with Eclipse 3.1
> 
> 
> But I donnot have an ANT build file. for my project, we donot 
> have an ANT build file yet..
> 
> Miguel Galves <[EMAIL PROTECTED]> wrote:  just for the 
> record, I use a plain Java project, with an appropriate ANT 
> build file that builds and deploys teh struts system for me.
> 
> It works fine.
> 
> Miguel
> 
> On 5/25/06, Maya menon wrote:
> >
> > No. It wont work. when I do that, it asks for a folder to 
> import to. 
> > When I type a new name in says, specified project doesnt exist and 
> > stops there...
> >
> > "Chaudhary, Harsh" wrote: Sounds like something
> > wrong with the import you did. Why don't you do a fresh 
> import without 
> > creating a project first. Then when you import, it would 
> prompt you to 
> > specify a project at which point, you can create a new project. 
> > Hopefully this will merge the two and generate a singular file 
> > structure.
> >
> > Harsh.
> >
> > -Original Message-
> > From: Maya menon [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 25, 2006 10:54 AM
> > To: Struts Users Mailing List
> > Subject: RE: Struts with Eclipse 3.1
> >
> >
> > Yes, I was trying that.
> >
> > I created an empty "Web project" in eclipse and imported 
> > struts-sample.war. But this created two WEB-INF directories and 2 
> > web.xml files. Looks like when a web project is first created, it 
> > already creates the web.xml and web-inf directory,a nd when the war 
> > file gets imported, it creates it again.
> >
> > So, I created a simple Java project and imported the war file. But 
> > functionally, will it work. What other suggestions ?
> >
> > "Chaudhary, Harsh" wrote:
> > A sample web project is bundeled with the struts 
> distribution at like: 
> > \struts-1.2.8-bin\struts-1.2.8-bin\webapps
> > Its called struts-examples.war. Get that running and then you can 
> > reuse that code to get started. Harsh.
> >
> > -Original Message-
> > From: Maya menon [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 25, 2006 10:31 AM
> > To: Struts Users Mailing List
> > Subject: RE: Struts with Eclipse 3.1
> >
> >
> > Thanks Harsh. I also dont care about ide support.
> >
> > But think you have an existing web project and you want to 
> use struts 
> > files. How do you do that ?
> >
> > In my case, I have a web project in eclipse [created using 
> eclipse 3.1 
> > and eclipse web tools platofrm]. Now to this project I have 
> added the 
> > struts zip file. How do I make use of the struts config 
> files, action 
> > classes etc ?
> >
> >
> >
> > "Chaudhary, Harsh" wrote:
> > Sure you can do that. But you would not have any IDE support. 
> > Personally I don't care much for IDE support as all you need is 
> > entries in struts-cofig.xml, an Action class, a Struts form and an 
> > HTML or JSP page.
> >
> > Harsh.
> >
> > -Original Message-
> > From: Maya menon [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 25, 2006 10:17 AM
> > To: Struts Users Mailing List
> > Subject: RE: Struts with Eclipse 3.1
> >
> >
> > Ok Thanks. Can I just import the zip file to my project and start 
> > using it ?
> >
> > Maya
> >
> > "Chaudhary, Harsh" wrote:
> > Sure you can. Just include the Struts lib files in your project. If 
> > you are talking about IDE support for Struts, then I would suggest:
> > http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
> > This is a tested plug-in for Struts on eclipse. It costs about $30 -
> > $40.
> >
> > There is another Struts plug-in for eclipse available at: 
> > http://download.eclipse.org/webtools/downloads/
> >
> > This one is free. I have used it myself and its pretty good too.
> >
> > Harsh.
> >
> > -Original Message-
> > From: Maya menon [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 25, 2006 10:06 AM
> > To: user@struts.apache.org
> > Subject: Struts with Eclipse 3.1
> >
> >
> > All,
> >
> > Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can 
> > anyone please help.
> >
> > Thanks.
> >
> >
> > -
> > Feel free to call! Free PC-to-PC calls. Low rates on 
> PC-to-Phone. Get 
> > Yahoo! Messenger with Voice
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com
> >
> > 
> ---

Re: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
But I donnot have an ANT build file. for my project, we donot have an ANT build 
file yet..

Miguel Galves <[EMAIL PROTECTED]> wrote:  just for the record, I use a plain 
Java project, with an appropriate ANT
build file that builds and deploys teh struts system for me.

It works fine.

Miguel

On 5/25/06, Maya menon wrote:
>
> No. It wont work. when I do that, it asks for a folder to import to. When
> I type a new name in says, specified project doesnt exist and stops there...
>
> "Chaudhary, Harsh" wrote: Sounds like something
> wrong with the import you did. Why don't you do a fresh import without
> creating a project first. Then when you import, it would prompt you to
> specify a project at which point, you can create a new project. Hopefully
> this will merge the two and generate a singular file structure.
>
> Harsh.
>
> -Original Message-
> From: Maya menon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 25, 2006 10:54 AM
> To: Struts Users Mailing List
> Subject: RE: Struts with Eclipse 3.1
>
>
> Yes, I was trying that.
>
> I created an empty "Web project" in eclipse and imported struts-sample.war.
> But this created two WEB-INF directories and 2 web.xml files. Looks like
> when a web project is first created, it already creates the web.xml and
> web-inf directory,a nd when the war file gets imported, it creates it again.
>
> So, I created a simple Java project and imported the war file. But
> functionally, will it work. What other suggestions ?
>
> "Chaudhary, Harsh" wrote:
> A sample web project is bundeled with the struts distribution at like:
> \struts-1.2.8-bin\struts-1.2.8-bin\webapps
> Its called struts-examples.war. Get that running and then you can reuse
> that code to get started.
> Harsh.
>
> -Original Message-
> From: Maya menon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 25, 2006 10:31 AM
> To: Struts Users Mailing List
> Subject: RE: Struts with Eclipse 3.1
>
>
> Thanks Harsh. I also dont care about ide support.
>
> But think you have an existing web project and you want to use struts
> files. How do you do that ?
>
> In my case, I have a web project in eclipse [created using eclipse 3.1
> and eclipse web tools platofrm]. Now to this project I have added the
> struts zip file. How do I make use of the struts config files, action
> classes etc ?
>
>
>
> "Chaudhary, Harsh" wrote:
> Sure you can do that. But you would not have any IDE support.
> Personally
> I don't care much for IDE support as all you need is entries in
> struts-cofig.xml, an Action class, a Struts form and an HTML or JSP
> page.
>
> Harsh.
>
> -Original Message-
> From: Maya menon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 25, 2006 10:17 AM
> To: Struts Users Mailing List
> Subject: RE: Struts with Eclipse 3.1
>
>
> Ok Thanks. Can I just import the zip file to my project and start using
> it ?
>
> Maya
>
> "Chaudhary, Harsh" wrote:
> Sure you can. Just include the Struts lib files in your project. If
> you
> are talking about IDE support for Struts, then I would suggest:
> http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
> This is a tested plug-in for Struts on eclipse. It costs about $30 -
> $40.
>
> There is another Struts plug-in for eclipse available at:
> http://download.eclipse.org/webtools/downloads/
>
> This one is free. I have used it myself and its pretty good too.
>
> Harsh.
>
> -Original Message-
> From: Maya menon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 25, 2006 10:06 AM
> To: user@struts.apache.org
> Subject: Struts with Eclipse 3.1
>
>
> All,
>
> Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
> anyone please help.
>
> Thanks.
>
>
> -
> Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
> Yahoo! Messenger with Voice
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
> rates starting at 1¢/min.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> New Yahoo! Messenger with Voice. Call regular phones from your PC and save
> big.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> Love cheap thrill

validation with validwhen

2006-05-25 Thread fea jabi

want to validate a property for

required,
and also make sure it's value is greater than Zero. The value should be a 
positive double.


tried the below

   
   
   
   test
   (*this* >= 0)
   
   

when nothing is entered by the user, getting the required message. When 
entered the characters not getting the message of validwhen.


what am I missing?

Thanks.

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts with Eclipse 3.1

2006-05-25 Thread Miguel Galves

just for the record, I use a plain Java project, with an appropriate ANT
build file that builds and deploys teh struts system for me.

It works fine.

Miguel

On 5/25/06, Maya menon <[EMAIL PROTECTED]> wrote:


No. It wont work. when I do that, it asks for a folder to import to. When
I type a new name in says, specified project doesnt exist and stops there...

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:  Sounds like something
wrong with the import you did. Why don't you do a fresh import without
creating a project first. Then when you import, it would prompt you to
specify a project at which point, you can create a new project. Hopefully
this will merge the two and generate a singular file structure.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 10:54 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Yes, I was trying that.

I created an empty "Web project" in eclipse and imported struts-sample.war.
But this created two WEB-INF directories and 2 web.xml files. Looks like
when a web project is first created, it already creates the web.xml and
web-inf directory,a nd when the war file gets imported, it creates it again.

So, I created a simple Java project and imported the war file. But
functionally, will it work. What other suggestions ?

"Chaudhary, Harsh" wrote:
A sample web project is bundeled with the struts distribution at like:
\struts-1.2.8-bin\struts-1.2.8-bin\webapps
Its called struts-examples.war. Get that running and then you can reuse
that code to get started.
Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 10:31 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Thanks Harsh. I also dont care about ide support.

But think you have an existing web project and you want to use struts
files. How do you do that ?

In my case, I have a web project in eclipse [created using eclipse 3.1
and eclipse web tools platofrm]. Now to this project I have added the
struts zip file. How do I make use of the struts config files, action
classes etc ?



"Chaudhary, Harsh" wrote:
Sure you can do that. But you would not have any IDE support.
Personally
I don't care much for IDE support as all you need is entries in
struts-cofig.xml, an Action class, a Struts form and an HTML or JSP
page.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 10:17 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Ok Thanks. Can I just import the zip file to my project and start using
it ?

Maya

"Chaudhary, Harsh" wrote:
Sure you can. Just include the Struts lib files in your project. If
you
are talking about IDE support for Struts, then I would suggest:
http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
This is a tested plug-in for Struts on eclipse. It costs about $30 -
$40.

There is another Struts plug-in for eclipse available at:
http://download.eclipse.org/webtools/downloads/

This one is free. I have used it myself and its pretty good too.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 10:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1


All,

Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.

Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
Yahoo! Messenger with Voice

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
rates starting at 1¢/min.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save
big.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just
2¢/min with Yahoo! Messenger with Voice.





--
Miguel Galves - Engenheiro de Computação
Já leu meus blogs hoje?
Para geeks http://log4dev.blogspot.com
Pra pessoas normais
http://miguelgalves.blogspot.com

"Não sabendo que era impossível, ele foi lá e fez..."


Re: iterating over multiple Collections in one loop with JSTL

2006-05-25 Thread David Evans

   ${list1Item}
   ${list2[status.index]}


the status variable is an instance of LoopTagStatus, which has an index
property that is set by the forEach loop.

I might favor combining the two lists (in your action) into a single
list, each element of which has a list that holds the two items from the
lists. so you'd access it like:


   ${listItems[0]}
   ${listItems[1]}



Dave


On Thu, 2006-05-25 at 08:28 -0700, Pat Slater wrote:
> Hi,
> Is it possible to do with JSTL something like this: 
> (Note: size of list1 and list2 are equal)
> List list1 = getList1();
> List list2 = getList2();
> for(int i=0; i {
> MyClass1 x1 = (MyClass1)list1.get( i );
> MyClass2 x2 = (MyClass2)list2.get( i );
> }
> 
> I can iterate with JSTL with forEach for either of the lists separately but I 
> need to display both of them in the same loop. How can I do that?
> 
> 
>   
> -
> Sneak preview the  all-new Yahoo.com. It's not radically different. Just 
> radically better. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
No. It wont work. when I do that, it asks for a folder to import to. When I 
type a new name in says, specified project doesnt exist and stops there...

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:  Sounds like something wrong with 
the import you did. Why don't you do a fresh import without creating a project 
first. Then when you import, it would prompt you to specify a project at which 
point, you can create a new project. Hopefully this will merge the two and 
generate a singular file structure.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:54 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Yes, I was trying that.

I created an empty "Web project" in eclipse and imported struts-sample.war. But 
this created two WEB-INF directories and 2 web.xml files. Looks like when a web 
project is first created, it already creates the web.xml and web-inf 
directory,a nd when the war file gets imported, it creates it again.

So, I created a simple Java project and imported the war file. But 
functionally, will it work. What other suggestions ?

"Chaudhary, Harsh" wrote:
A sample web project is bundeled with the struts distribution at like:
\struts-1.2.8-bin\struts-1.2.8-bin\webapps
Its called struts-examples.war. Get that running and then you can reuse
that code to get started.
Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:31 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Thanks Harsh. I also dont care about ide support. 

But think you have an existing web project and you want to use struts
files. How do you do that ?

In my case, I have a web project in eclipse [created using eclipse 3.1
and eclipse web tools platofrm]. Now to this project I have added the
struts zip file. How do I make use of the struts config files, action
classes etc ?



"Chaudhary, Harsh" wrote:
Sure you can do that. But you would not have any IDE support.
Personally
I don't care much for IDE support as all you need is entries in
struts-cofig.xml, an Action class, a Struts form and an HTML or JSP
page.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:17 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Ok Thanks. Can I just import the zip file to my project and start using
it ?

Maya

"Chaudhary, Harsh" wrote: 
Sure you can. Just include the Struts lib files in your project. If
you
are talking about IDE support for Struts, then I would suggest:
http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
This is a tested plug-in for Struts on eclipse. It costs about $30 -
$40.

There is another Struts plug-in for eclipse available at:
http://download.eclipse.org/webtools/downloads/

This one is free. I have used it myself and its pretty good too.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1


All,

Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.

Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
Yahoo! Messenger with Voice

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
rates starting at 1¢/min.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2¢/min 
with Yahoo! Messenger with Voice.

RE: iterating over multiple Collections in one loop with JSTL

2006-05-25 Thread Samere, Adam J
How about creating a single list with an object to encapsulate the
values from list1 and list2 in a single entity?

Public class MyClassContainer {
private MyClass1 my1;
private MyClass2 my2;

...
} 

List = ...

myClassContainerList.add(new MyClassContainer(myClass1, myClass2));

Then in the JSP you only need one loop.




...


Adam

-Original Message-
From: Pat Slater [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 11:28 AM
To: user@struts.apache.org
Subject: iterating over multiple Collections in one loop with JSTL

Hi,
Is it possible to do with JSTL something like this: 
(Note: size of list1 and list2 are equal) List list1 = getList1(); List
list2 = getList2(); for(int i=0; i

RE: Struts with Eclipse 3.1

2006-05-25 Thread Chaudhary, Harsh
Sounds like something wrong with the import you did. Why don't you do a fresh 
import without creating a project first. Then when you import, it would prompt 
you to specify a project at which point, you can create a new project. 
Hopefully this will merge the two and generate a singular file structure.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:54 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Yes, I was trying that.
   
  I created an empty "Web project" in eclipse and imported struts-sample.war. 
But this created two WEB-INF directories and 2 web.xml files. Looks like when a 
web project is first created, it already creates the web.xml and web-inf 
directory,a nd when the war file gets imported, it creates it again.
   
  So, I created a simple Java project and imported the war file. But 
functionally, will it work. What other suggestions ?

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:
  A sample web project is bundeled with the struts distribution at like:
\struts-1.2.8-bin\struts-1.2.8-bin\webapps
Its called struts-examples.war. Get that running and then you can reuse
that code to get started.
Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:31 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Thanks Harsh. I also dont care about ide support. 

But think you have an existing web project and you want to use struts
files. How do you do that ?

In my case, I have a web project in eclipse [created using eclipse 3.1
and eclipse web tools platofrm]. Now to this project I have added the
struts zip file. How do I make use of the struts config files, action
classes etc ?



"Chaudhary, Harsh" wrote:
Sure you can do that. But you would not have any IDE support.
Personally
I don't care much for IDE support as all you need is entries in
struts-cofig.xml, an Action class, a Struts form and an HTML or JSP
page.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:17 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Ok Thanks. Can I just import the zip file to my project and start using
it ?

Maya

"Chaudhary, Harsh" wrote: 
Sure you can. Just include the Struts lib files in your project. If
you
are talking about IDE support for Struts, then I would suggest:
http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
This is a tested plug-in for Struts on eclipse. It costs about $30 -
$40.

There is another Struts plug-in for eclipse available at:
http://download.eclipse.org/webtools/downloads/

This one is free. I have used it myself and its pretty good too.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1


All,

Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.

Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
Yahoo! Messenger with Voice

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
rates starting at 1¢/min.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts with Eclipse 3.1

2006-05-25 Thread Samere, Adam J
The best IDE support for struts in eclipse I've found is now owned by
BEA, and is called BEA Workshop Studio. It was formerly NitroX from m7.
It does a great job of providing development time error checking and
code completion in jsp and xml configuration files, including validation
and tiles configuration. It's quite pricy compared to alternatives like
MyEclipse, but well worth it in my eyes. It also provides support for
JSF and ORM.
http://workshopstudio.bea.com/index.html

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 11:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1

All,
   
  Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.
   
  Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone.  Get
Yahoo! Messenger with Voice

-
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: what is the best practice?

2006-05-25 Thread Rafael

Hi,

I've been enjoying these conversations about 'Architecture'/'Best Practices' 
etc..   Does anyone knows if there is a specific list somewhere to get more 
information about architecture decisions, etc ???


-Rafael T Icibaci


- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Monday, May 22, 2006 6:49 PM
Subject: Re: what is the best practice?



Hi Joel,

the methods you mention are all data access calls, not business methods, 
because business methods would actually carry out some form of business 
logic on the data.
But anyway your methods are OK. It just corresponds to the number of ways 
your app needs to access the data. There would be no reason to reduce the 
number of methods, although you should make sure that you are not repeated 
large amounts of code. With iBatis I think you would avoid that.


Regards
Adam

Joel Alejandro Espinosa Carra on 22/05/06 17:39, wrote:

Thank you Adam, Paul:

I will try iBATIS as you suggested to me. I have another question to you 
in the same context. In this MessagesManager class I have business 
methods like getAllMessages() that retrieves all the messages from the 
database, but I also have another business methods like 
getMessagesForUser(String user_id), getMessagesForMonth(int id_month), 
etc. in my opinion this will make this class have eventually a lot of 
business methods, what is the best way to handle that?


Again, thanks for your help.
Best regards.

ps. Paul Benedict like Ocean's eleven?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: urgent

2006-05-25 Thread David Friedman
I'll chime in like everyone else plus give you alternatives:

Have you even looked at the DisplayTag documentation, live examples or
looked at the configuration information?  The examples show the alternating
row css coloring is automatic (even[row]/odd[row] css styles) while the
configuration page on their site even mentions how to control those CSS
styles+classes and more.  Also, if you have any trouble with DisplayTag you
can have some very similar functionality from ValueList:
http://valuelist.sourceforge.net (they also have a link to "Live Samples."

Regards,
David

-Original Message-
From: Abhimanyu Koul [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 1:56 AM
To: Struts Mailing list
Subject: urgent


hi all!
I want to display the records in a list using display tag in a tabular form.
But i need to alternate row background colours using css. i am not able to
figure out how.
how do we alternate styles in rows of a table using css and display tag.


Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Valiation for the time HH:mm:SS

2006-05-25 Thread Chaudhary, Harsh
Check this out. I haven't used it myself. Just a pointer. Check out
TimeValidator in the API docs.
http://jakarta.apache.org/commons/validator/apidocs/index.html

Harsh.

-Original Message-
From: Carl Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:54 AM
To: Struts Users Mailing List
Subject: Valiation for the time HH:mm:SS


Does struts have an intrisic validator for time entered using a format
as HH:mm:ss? Thanks.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
Yes, I was trying that.
   
  I created an empty "Web project" in eclipse and imported struts-sample.war. 
But this created two WEB-INF directories and 2 web.xml files. Looks like when a 
web project is first created, it already creates the web.xml and web-inf 
directory,a nd when the war file gets imported, it creates it again.
   
  So, I created a simple Java project and imported the war file. But 
functionally, will it work. What other suggestions ?

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:
  A sample web project is bundeled with the struts distribution at like:
\struts-1.2.8-bin\struts-1.2.8-bin\webapps
Its called struts-examples.war. Get that running and then you can reuse
that code to get started.
Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:31 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Thanks Harsh. I also dont care about ide support. 

But think you have an existing web project and you want to use struts
files. How do you do that ?

In my case, I have a web project in eclipse [created using eclipse 3.1
and eclipse web tools platofrm]. Now to this project I have added the
struts zip file. How do I make use of the struts config files, action
classes etc ?



"Chaudhary, Harsh" wrote:
Sure you can do that. But you would not have any IDE support.
Personally
I don't care much for IDE support as all you need is entries in
struts-cofig.xml, an Action class, a Struts form and an HTML or JSP
page.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:17 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Ok Thanks. Can I just import the zip file to my project and start using
it ?

Maya

"Chaudhary, Harsh" wrote: 
Sure you can. Just include the Struts lib files in your project. If
you
are talking about IDE support for Struts, then I would suggest:
http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
This is a tested plug-in for Struts on eclipse. It costs about $30 -
$40.

There is another Struts plug-in for eclipse available at:
http://download.eclipse.org/webtools/downloads/

This one is free. I have used it myself and its pretty good too.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1


All,

Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.

Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
Yahoo! Messenger with Voice

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
rates starting at 1¢/min.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Valiation for the time HH:mm:SS

2006-05-25 Thread Carl Smith
Does struts have an intrisic validator for time entered using a format as 
HH:mm:ss? Thanks.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Struts with Eclipse 3.1

2006-05-25 Thread Chaudhary, Harsh
A sample web project is bundeled with the struts distribution at like:
\struts-1.2.8-bin\struts-1.2.8-bin\webapps
Its called struts-examples.war. Get that running and then you can reuse
that code to get started.
Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:31 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Thanks Harsh. I also dont care about ide support. 
   
  But think you have an existing web project and you want to use struts
files. How do you do that ?
   
  In my case, I have a web project in eclipse [created using eclipse 3.1
and eclipse web tools platofrm]. Now to this project I have added the
struts zip file. How do I make use of the struts config files, action
classes etc ?
   
  

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:
  Sure you can do that. But you would not have any IDE support.
Personally
I don't care much for IDE support as all you need is entries in
struts-cofig.xml, an Action class, a Struts form and an HTML or JSP
page.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:17 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Ok Thanks. Can I just import the zip file to my project and start using
it ?

Maya

"Chaudhary, Harsh" wrote: 
Sure you can. Just include the Struts lib files in your project. If
you
are talking about IDE support for Struts, then I would suggest:
http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
This is a tested plug-in for Struts on eclipse. It costs about $30 -
$40.

There is another Struts plug-in for eclipse available at:
http://download.eclipse.org/webtools/downloads/

This one is free. I have used it myself and its pretty good too.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1


All,

Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.

Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
Yahoo! Messenger with Voice

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great
rates starting at 1¢/min.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Regardind configuration in server.xml

2006-05-25 Thread Miguel Galves

sure

On 5/25/06, Monkeyden <[EMAIL PROTECTED]> wrote:


I assume you have at the top of your class:

package utilities;


On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
>
> Thats what it seemed to meso I wrote the following code
>
> public class MyTilesRequestProcessor extends TilesRequestProcessor {
>
>public void process(HttpServletRequest request, HttpServletResponse
> response) throws IOException,
>
> ServletException {
>  ...
>}
>
>public void setTeste(String value){
>System.out.println(value);
>}
>
> }
>
> And it dows not work...so it seems that struts is looking for the
setTeste
> in another
> class, which is strange.
>
> On 5/25/06, Monkeyden <[EMAIL PROTECTED]> wrote:
> >
> > Ah, ok.  This is from the struts-config DTD.  Looks like you need to
> > define
> > an accessor, named setTest, in your RequestProcessor.
> >
> >
> > When the object representing the surrounding element is instantiated,
> the
> > accessor for the indicated property is called and passed the indicated
> > value.
> >
> >
> >
> > On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
> > >
> > > Thats because I've changed the tag before sending the code to the
> list.
> > > The original version was in portuguese...teste... :-) I've definded
a
> > > setTeste method
> > > and a teste property.
> > >
> > > So that's OK..
> > >
> > > On 5/25/06, Monkeyden <[EMAIL PROTECTED]> wrote:
> > > >
> > > > You always have to watch your "testes" when overrriding the
> > > > RequestProcessor.  Looks like you have a typo.
> > > >
> > > > java.lang.NoSuchMethodException: Bean has no property named teste
> > > >at org.apache.commons.digester.SetPropertyRule.begin(
> > > >
> > > >
> > > > On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > I wrote a new controller class, which extends
> TileRequestProcessor,
> > in
> > > > > order
> > > > > to solve a problem we had with POST requests enconding (UTF-8),
> > > > specially
> > > > > with multipart-form requests.
> > > > >
> > > > > I'm now trying to pass some paremeters to the new controller,
> using
> > > > > the set-property tag in server.xml
> > > > >
> > > > >  > > > > processorClass="utilities.MyTilesRequestProcessor"
> > > > > contentType="text/html; charset=UTF-8">
> > > > > 
> > > > > 
> > > > >
> > > > > but its not working. I've created a setTest method in my
> processor,
> > > but
> > > > > I'm
> > > > > still geeting the following exception:
> > > > >
> > > > > May 25, 2006 9:07:12 AM
> > > org.apache.commons.digester.DigesterstartElement
> > > > > SEVERE: Begin event threw exception
> > > > > java.lang.NoSuchMethodException: Bean has no property named
teste
> > > > > at org.apache.commons.digester.SetPropertyRule.begin(
> > > > > SetPropertyRule.java:144)
> > > > > at org.apache.commons.digester.Rule.begin(Rule.java:152)
> > > > > at org.apache.commons.digester.Digester.startElement(
> > Digester.java
> > > > > :1286)
> > > > > at
> > > > >
> > > >
> > >
> >
>
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(
> > > > > AbstractSAXParser.java:533)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
>
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement
> > > > > (AbstractXMLDocumentParser.java:220)
> > > > > at
> > > > >
> > >
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement
> > > > (
> > > > > XMLDTDValidator.java:819)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
>
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
> > > > > (XMLNSDocumentScannerImpl.java:316)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> > > > > (XMLDocumentFragmentScannerImpl.java:1693)
> > > > > at
> > > > >
> > > > >
> > > >
> > >
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
> > > > > (XMLDocumentFragmentScannerImpl.java:368)
> > > > > at
> > > >
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > > > > (
> > > > > XML11Configuration.java:834)
> > > > > at
> > > >
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > > > > (
> > > > > XML11Configuration.java:764)
> > > > > at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> > > > > XMLParser.java:148)
> > > > > at
> > > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
(
> > > > > AbstractSAXParser.java:1242)
> > > > > at org.apache.commons.digester.Digester.parse(Digester.java
> > :1572)
> > > > > at
> org.apache.struts.action.ActionServlet.parseModuleConfigFile(
> > > > > ActionServlet.java:738)
> > > > > at org.apache.struts.action.ActionServlet.initModuleConfig(
> > > > > ActionServlet.java:687)
> > > > > at org.apache.struts.action.ActionServlet.i

RE: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
Thanks Harsh. I also dont care about ide support. 
   
  But think you have an existing web project and you want to use struts files. 
How do you do that ?
   
  In my case, I have a web project in eclipse [created using eclipse 3.1 and 
eclipse web tools platofrm]. Now to this project I have added the struts zip 
file. How do I make use of the struts config files, action classes etc ?
   
  

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:
  Sure you can do that. But you would not have any IDE support. Personally
I don't care much for IDE support as all you need is entries in
struts-cofig.xml, an Action class, a Struts form and an HTML or JSP
page.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:17 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Ok Thanks. Can I just import the zip file to my project and start using
it ?

Maya

"Chaudhary, Harsh" wrote: 
Sure you can. Just include the Struts lib files in your project. If
you
are talking about IDE support for Struts, then I would suggest:
http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
This is a tested plug-in for Struts on eclipse. It costs about $30 -
$40.

There is another Struts plug-in for eclipse available at:
http://download.eclipse.org/webtools/downloads/

This one is free. I have used it myself and its pretty good too.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1


All,

Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.

Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
Yahoo! Messenger with Voice

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

iterating over multiple Collections in one loop with JSTL

2006-05-25 Thread Pat Slater
Hi,
Is it possible to do with JSTL something like this: 
(Note: size of list1 and list2 are equal)
List list1 = getList1();
List list2 = getList2();
for(int i=0; i

RE: Struts with Eclipse 3.1

2006-05-25 Thread Chaudhary, Harsh
Sure you can do that. But you would not have any IDE support. Personally
I don't care much for IDE support as all you need is entries in
struts-cofig.xml, an Action class, a Struts form and an HTML or JSP
page.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:17 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Ok Thanks. Can I just import the zip file to my project and start using
it ?
   
  Maya

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote: 
  Sure you can. Just include the Struts lib files in your project. If
you
are talking about IDE support for Struts, then I would suggest:
http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
This is a tested plug-in for Struts on eclipse. It costs about $30 -
$40.

There is another Struts plug-in for eclipse available at:
http://download.eclipse.org/webtools/downloads/

This one is free. I have used it myself and its pretty good too.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1


All,

Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.

Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
Yahoo! Messenger with Voice

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
Ok Thanks. Can I just import the zip file to my project and start using it ?
   
  Maya

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote: 
  Sure you can. Just include the Struts lib files in your project. If you
are talking about IDE support for Struts, then I would suggest:
http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
This is a tested plug-in for Struts on eclipse. It costs about $30 -
$40.

There is another Struts plug-in for eclipse available at:
http://download.eclipse.org/webtools/downloads/

This one is free. I have used it myself and its pretty good too.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1


All,

Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.

Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
Yahoo! Messenger with Voice

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: urgent

2006-05-25 Thread Ruben Cepeda

Hi Abhimanyu,

There are a question before I or I guess anyone on this list could be of 
help.


1.  How are you drawing the row in you table (i.e. JSTL's forEach tags or 
something else)?


(see http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html for 
informatio about JSTL's forEach)


If you are using JSTL's forEach tag here is some sample code:



 
 
 

 
 
 

  

 



Also, read this great article http://www.alistapart.com/articles/zebratables



*
Ruben Cepeda
[EMAIL PROTECTED]
*



Original Message Follows
From: "Abhimanyu Koul" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: "Struts Mailing list" 
Subject: urgent
Date: Thu, 25 May 2006 11:25:46 +0530

hi all!
I want to display the records in a list using display tag in a tabular form.
But i need to alternate row background colours using css. i am not able to 
figure out how.

how do we alternate styles in rows of a table using css and display tag.


Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts with Eclipse 3.1

2006-05-25 Thread Chaudhary, Harsh
Sure you can. Just include the Struts lib files in your project. If you
are talking about IDE support for Struts, then I would suggest:
http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
This is a tested plug-in for Struts on eclipse. It costs about $30 -
$40.

There is another Struts plug-in for eclipse available at:
http://download.eclipse.org/webtools/downloads/

This one is free. I have used it myself and its pretty good too.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1


All,
   
  Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.
   
  Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone.  Get
Yahoo! Messenger with Voice

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts with Eclipse 3.1http://javaboutique.internet.com/tutorials/three/

2006-05-25 Thread Jorge Martín Cuervo
http://javaboutique.internet.com/tutorials/three/
El jue, 25 de 05 de 2006 a las 17:05, Maya menon escribió:

> All,
>
>   Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can anyone 
> please help.
>
>   Thanks.
> 
>   
> -
> Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone.  Get Yahoo! 
> Messenger with Voice

-- 
;-)

Jorge Martin Cuervo
Analista Programador

Outsourcing Emarketplace
deFacto Powered by Standards

email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384



Re: Struts with Eclipse 3.1

2006-05-25 Thread Jorge Martín Cuervo
Hi,

of course.

you can use WTP or sysdeo plugin

El jue, 25 de 05 de 2006 a las 17:05, Maya menon escribió:

> All,
>
>   Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can anyone 
> please help.
>
>   Thanks.
> 
>   
> -
> Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone.  Get Yahoo! 
> Messenger with Voice

-- 
;-)

Jorge Martin Cuervo
Analista Programador

Outsourcing Emarketplace
deFacto Powered by Standards

email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384



Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
All,
   
  Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can anyone 
please help.
   
  Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone.  Get Yahoo! 
Messenger with Voice

Re: Regardind configuration in server.xml

2006-05-25 Thread Monkeyden

I assume you have at the top of your class:

package utilities;


On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:


Thats what it seemed to meso I wrote the following code

public class MyTilesRequestProcessor extends TilesRequestProcessor {

   public void process(HttpServletRequest request, HttpServletResponse
response) throws IOException,

ServletException {
 ...
   }

   public void setTeste(String value){
   System.out.println(value);
   }

}

And it dows not work...so it seems that struts is looking for the setTeste
in another
class, which is strange.

On 5/25/06, Monkeyden <[EMAIL PROTECTED]> wrote:
>
> Ah, ok.  This is from the struts-config DTD.  Looks like you need to
> define
> an accessor, named setTest, in your RequestProcessor.
>
>
> When the object representing the surrounding element is instantiated,
the
> accessor for the indicated property is called and passed the indicated
> value.
>
>
>
> On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
> >
> > Thats because I've changed the tag before sending the code to the
list.
> > The original version was in portuguese...teste... :-) I've definded a
> > setTeste method
> > and a teste property.
> >
> > So that's OK..
> >
> > On 5/25/06, Monkeyden <[EMAIL PROTECTED]> wrote:
> > >
> > > You always have to watch your "testes" when overrriding the
> > > RequestProcessor.  Looks like you have a typo.
> > >
> > > java.lang.NoSuchMethodException: Bean has no property named teste
> > >at org.apache.commons.digester.SetPropertyRule.begin(
> > >
> > >
> > > On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi,
> > > >
> > > > I wrote a new controller class, which extends
TileRequestProcessor,
> in
> > > > order
> > > > to solve a problem we had with POST requests enconding (UTF-8),
> > > specially
> > > > with multipart-form requests.
> > > >
> > > > I'm now trying to pass some paremeters to the new controller,
using
> > > > the set-property tag in server.xml
> > > >
> > > >  > > > processorClass="utilities.MyTilesRequestProcessor"
> > > > contentType="text/html; charset=UTF-8">
> > > > 
> > > > 
> > > >
> > > > but its not working. I've created a setTest method in my
processor,
> > but
> > > > I'm
> > > > still geeting the following exception:
> > > >
> > > > May 25, 2006 9:07:12 AM
> > org.apache.commons.digester.DigesterstartElement
> > > > SEVERE: Begin event threw exception
> > > > java.lang.NoSuchMethodException: Bean has no property named teste
> > > > at org.apache.commons.digester.SetPropertyRule.begin(
> > > > SetPropertyRule.java:144)
> > > > at org.apache.commons.digester.Rule.begin(Rule.java:152)
> > > > at org.apache.commons.digester.Digester.startElement(
> Digester.java
> > > > :1286)
> > > > at
> > > >
> > >
> >
>
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(
> > > > AbstractSAXParser.java:533)
> > > > at
> > > >
> > > >
> > >
> >
>
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement
> > > > (AbstractXMLDocumentParser.java:220)
> > > > at
> > > >
> >
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement
> > > (
> > > > XMLDTDValidator.java:819)
> > > > at
> > > >
> > > >
> > >
> >
>
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
> > > > (XMLNSDocumentScannerImpl.java:316)
> > > > at
> > > >
> > > >
> > >
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> > > > (XMLDocumentFragmentScannerImpl.java:1693)
> > > > at
> > > >
> > > >
> > >
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
> > > > (XMLDocumentFragmentScannerImpl.java:368)
> > > > at
> > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > > > (
> > > > XML11Configuration.java:834)
> > > > at
> > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > > > (
> > > > XML11Configuration.java:764)
> > > > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> > > > XMLParser.java:148)
> > > > at
> > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(
> > > > AbstractSAXParser.java:1242)
> > > > at org.apache.commons.digester.Digester.parse(Digester.java
> :1572)
> > > > at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(
> > > > ActionServlet.java:738)
> > > > at org.apache.struts.action.ActionServlet.initModuleConfig(
> > > > ActionServlet.java:687)
> > > > at org.apache.struts.action.ActionServlet.init(
> ActionServlet.java
> > > :333)
> > > > at javax.servlet.GenericServlet.init(GenericServlet.java:211)
> > > > at org.apache.catalina.core.StandardWrapper.loadServlet(
> > > > StandardWrapper.java:1091)
> > > > at org.apache.catalina.core.StandardWrapper.load(
> > > StandardWrapper.java
> > > > :925)
> > > > at org.apache.catalina.core.StandardCont

RE: More then 1 Action Forms in JSP

2006-05-25 Thread Raghuveer
As per your suggestion i have used like this

document.forms[0].action="/<%=strRoot%>/Help.do?method=downloadHelp&hdnPage=
<%=Constants.FIRST_PAGE%>"
.
..
document.forms[0].action="/<%=strRoot%>/Help.do?method=downloadHelp&hdnPage=
<%=Constants.TENTH_PAGE%>"

in Struts-Config.xml

 
   
.
.

   
  


Is this correct ?


  -Original Message-
  From: Monkeyden [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 25, 2006 7:38 PM
  To: Struts Users Mailing List; [EMAIL PROTECTED]
  Subject: Re: More then 1 Action Forms in JSP


  As in a pop-up?  If so, then you create a HelpAction and JSP, which would
be expecting a request parameter specifiying the current screen.  Use that
parameter to determine what content to fetch.  Basically, it's a new Action.
The only thing your 10 existing screens will be responsible for is passing
that request parameter (likely on the querystring).


  On 5/25/06, Raghuveer <[EMAIL PROTECTED]> wrote:

I have 10 JSP's and used 10 Action forms,10 action classes(dispatch
action
and action) with 10 Action Mappings in Struts-config.xml.

I have 1 common functionality where if user clicks HELP button in any
screen
i need to get documennt stored in database and show to user.

Question1)

Is it possiable to user 2 actionforms in 1 JSP ?

Question2)
What is best way to implemt such scenerios in struts.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





RE: More then 1 Action Forms in JSP

2006-05-25 Thread Raghuveer
>You just need 2
>different forms pointing to different actions. 

I am using only one mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 7:49 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: More then 1 Action Forms in JSP


Sure its possible for a JSP to call 2 different actions. You just need 2
different forms pointing to different actions. 

I would implement an action like DispatchAction and determine
programatically which action to forward the user to. This also helps if
I need to change the design in the future.

Harsh.

-Original Message-
From: Raghuveer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 12:42 AM
To: user@struts.apache.org
Subject: More then 1 Action Forms in JSP



I have 10 JSP's and used 10 Action forms,10 action classes(dispatch
action
and action) with 10 Action Mappings in Struts-config.xml.

I have 1 common functionality where if user clicks HELP button in any
screen
i need to get documennt stored in database and show to user.

Question1)

Is it possiable to user 2 actionforms in 1 JSP ?

Question2)
What is best way to implemt such scenerios in struts.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: change date validator-rules

2006-05-25 Thread Vinit Sharma

Well I can't tell you the JS way, but surely I can tell you how to do it
Struts way.

Your custom validator rule should first check for fields value. If not #
then call the date validator:

   if(! ValidatorUtils.getValueAsString(bean, field.getProperty
()).equals("#"))
   {
   if(! FieldChecks.validateDate(bean, va, field, errors,
validator, request))
   {
   //Add some error message
   }
   }

HTH,

On 5/25/06, Stanislav <[EMAIL PROTECTED]> wrote:


The thing is that user can input nothing in filed, but if they input #
than date validation is
"skipped", but if input is different from # then date validation is
executed. My idea was to change
date validation to check if the input if equal #, but my knowledge of js
is very limited, and dont
know how to do that :-(

can you give me some example?

Tnx,
Stanislav


- Original Message Follows -
> Write a custom validator rule, check for the field value and if the
value is
> not #, then set error message.
>
> HTH,
>
>
> On 5/25/06, Stanislav <[EMAIL PROTECTED]> wrote:
> >
> > Hi!
> >
> > I want to change date validator-rules so ih the input data id equal
"#"
> > than return that everything
> > is ok... How can i do that?
> >
> > Tnx, Stanislav
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Vinit Sharma
IBM


RE: change date validator-rules

2006-05-25 Thread Chaudhary, Harsh
I think the best thing (and only thing) to do would be to, like someone
else suggested, to write a custom validator, and then if the incoming
value is #, return true. Otherwise, run the validation. For examples of
custom validators, download the commons validator distribution. It has
an example project in there which does these things and you can use that
code.

Harsh.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 8:13 AM
To: user@struts.apache.org
Subject: Re: change date validator-rules


The thing is that user can input nothing in filed, but if they input #
than date validation is
"skipped", but if input is different from # then date validation is
executed. My idea was to change
date validation to check if the input if equal #, but my knowledge of js
is very limited, and dont
know how to do that :-(

can you give me some example?

Tnx,
Stanislav


- Original Message Follows -
> Write a custom validator rule, check for the field value and if the
value is
> not #, then set error message.
> 
> HTH,
> 
> 
> On 5/25/06, Stanislav <[EMAIL PROTECTED]> wrote:
> >
> > Hi!
> >
> > I want to change date validator-rules so ih the input data id equal
"#"
> > than return that everything
> > is ok... How can i do that?
> >
> > Tnx, Stanislav
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Regardind configuration in server.xml

2006-05-25 Thread Miguel Galves

Thats what it seemed to meso I wrote the following code

public class MyTilesRequestProcessor extends TilesRequestProcessor {

   public void process(HttpServletRequest request, HttpServletResponse
response) throws IOException,

ServletException {
 ...
   }

   public void setTeste(String value){
   System.out.println(value);
   }

}

And it dows not work...so it seems that struts is looking for the setTeste
in another
class, which is strange.

On 5/25/06, Monkeyden <[EMAIL PROTECTED]> wrote:


Ah, ok.  This is from the struts-config DTD.  Looks like you need to
define
an accessor, named setTest, in your RequestProcessor.


When the object representing the surrounding element is instantiated, the
accessor for the indicated property is called and passed the indicated
value.



On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
>
> Thats because I've changed the tag before sending the code to the list.
> The original version was in portuguese...teste... :-) I've definded a
> setTeste method
> and a teste property.
>
> So that's OK..
>
> On 5/25/06, Monkeyden <[EMAIL PROTECTED]> wrote:
> >
> > You always have to watch your "testes" when overrriding the
> > RequestProcessor.  Looks like you have a typo.
> >
> > java.lang.NoSuchMethodException: Bean has no property named teste
> >at org.apache.commons.digester.SetPropertyRule.begin(
> >
> >
> > On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > I wrote a new controller class, which extends TileRequestProcessor,
in
> > > order
> > > to solve a problem we had with POST requests enconding (UTF-8),
> > specially
> > > with multipart-form requests.
> > >
> > > I'm now trying to pass some paremeters to the new controller, using
> > > the set-property tag in server.xml
> > >
> > >  > > processorClass="utilities.MyTilesRequestProcessor"
> > > contentType="text/html; charset=UTF-8">
> > > 
> > > 
> > >
> > > but its not working. I've created a setTest method in my processor,
> but
> > > I'm
> > > still geeting the following exception:
> > >
> > > May 25, 2006 9:07:12 AM
> org.apache.commons.digester.DigesterstartElement
> > > SEVERE: Begin event threw exception
> > > java.lang.NoSuchMethodException: Bean has no property named teste
> > > at org.apache.commons.digester.SetPropertyRule.begin(
> > > SetPropertyRule.java:144)
> > > at org.apache.commons.digester.Rule.begin(Rule.java:152)
> > > at org.apache.commons.digester.Digester.startElement(
Digester.java
> > > :1286)
> > > at
> > >
> >
>
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(
> > > AbstractSAXParser.java:533)
> > > at
> > >
> > >
> >
>
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement
> > > (AbstractXMLDocumentParser.java:220)
> > > at
> > >
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement
> > (
> > > XMLDTDValidator.java:819)
> > > at
> > >
> > >
> >
>
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
> > > (XMLNSDocumentScannerImpl.java:316)
> > > at
> > >
> > >
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> > > (XMLDocumentFragmentScannerImpl.java:1693)
> > > at
> > >
> > >
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
> > > (XMLDocumentFragmentScannerImpl.java:368)
> > > at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > > (
> > > XML11Configuration.java:834)
> > > at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > > (
> > > XML11Configuration.java:764)
> > > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> > > XMLParser.java:148)
> > > at
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(
> > > AbstractSAXParser.java:1242)
> > > at org.apache.commons.digester.Digester.parse(Digester.java
:1572)
> > > at org.apache.struts.action.ActionServlet.parseModuleConfigFile(
> > > ActionServlet.java:738)
> > > at org.apache.struts.action.ActionServlet.initModuleConfig(
> > > ActionServlet.java:687)
> > > at org.apache.struts.action.ActionServlet.init(
ActionServlet.java
> > :333)
> > > at javax.servlet.GenericServlet.init(GenericServlet.java:211)
> > > at org.apache.catalina.core.StandardWrapper.loadServlet(
> > > StandardWrapper.java:1091)
> > > at org.apache.catalina.core.StandardWrapper.load(
> > StandardWrapper.java
> > > :925)
> > > at org.apache.catalina.core.StandardContext.loadOnStartup(
> > > StandardContext.java:3857)
> > > at org.apache.catalina.core.StandardContext.start(
> > StandardContext.java
> > > :4118)
> > > at org.apache.catalina.core.ContainerBase.addChildInternal(
> > > ContainerBase.java:759)
> > > at org.apache.catalina.core.ContainerBase.addChild(
> > ContainerBase.java
> > > :739)
> > > at org.apache.catalina

Re: More then 1 Action Forms in JSP

2006-05-25 Thread Monkeyden

I considered DispatchAction but it sounds like he is looking for your
average context-sensitive help functionality.

On 5/25/06, Chaudhary, Harsh <[EMAIL PROTECTED]> wrote:


Sure its possible for a JSP to call 2 different actions. You just need 2
different forms pointing to different actions.

I would implement an action like DispatchAction and determine
programatically which action to forward the user to. This also helps if
I need to change the design in the future.

Harsh.

-Original Message-
From: Raghuveer [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 12:42 AM
To: user@struts.apache.org
Subject: More then 1 Action Forms in JSP



I have 10 JSP's and used 10 Action forms,10 action classes(dispatch
action
and action) with 10 Action Mappings in Struts-config.xml.

I have 1 common functionality where if user clicks HELP button in any
screen
i need to get documennt stored in database and show to user.

Question1)

Is it possiable to user 2 actionforms in 1 JSP ?

Question2)
What is best way to implemt such scenerios in struts.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: change date validator-rules

2006-05-25 Thread Chaudhary, Harsh
Or rather, if the value is #, return true.

Harsh.

-Original Message-
From: Vinit Sharma [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 7:54 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: change date validator-rules


Write a custom validator rule, check for the field value and if the
value is
not #, then set error message.

HTH,


On 5/25/06, Stanislav <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I want to change date validator-rules so ih the input data id equal
"#"
> than return that everything
> is ok... How can i do that?
>
> Tnx, Stanislav
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Vinit Sharma
IBM

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: number of days

2006-05-25 Thread Chaudhary, Harsh
There is no easy way man. best you can do is to find a JavaScript date
library that already exists. Try the forums on java.net. Its way too
much work to write a date handeler library yourself and its probably
been done before.;

Harsh.

-Original Message-
From: Abhimanyu Koul [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 7:22 AM
To: Struts Users Mailing List
Subject: Re: number of days


thanks.
but i am really looking for a way to do this on the client side.
any idea?

Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533
- Original Message -
From: "Bart Busschots" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, May 25, 2006 5:34 PM
Subject: Re: number of days


> This isn't a struts question but anyway, assuming you want to do this
on
> the server side and not on the client side (you'd be mad to do it on
the
> client side) the java Date related utility classes will be able to
help
> you out (java.util.Calendar, java.util.GregorialCalendar,
java.util.Date).
>
> The way I would do it would be something like this:
> 1) Create a counter to hold your total
> 2) Create a date for your start time and for your end time
> 3) Convert the date for your start time to a Calendar
> Write a while loop something like:
>
> while(startDate.before(EndDate)){
>if(startDate is a Sunday){
>; file://do nothing
>}if(startDate is a Saturday){
>   total += 0.5;
>}else{
>   total += 1.0;
>}
>file://add a day to the Start Date
> }
>
> HTH, Bart.
>
> Abhimanyu Koul wrote:
> > hi!
> > i am really struggling to find a  way to calculate number of days
between two dates in mm/dd/ which i get using javascript popup
calendars.  excluding sundays and half saturdays.
> > the number of days i have to record in the database.
> > please help
> >
> > Abhimanyu Koul
> > FinEng Solutions (P)  Ltd.
> > Dani Compound,
> > 158, Vidyanagari Marg,
> > Kalina, Santacruz (East),
> > Mumbai - 400 098
> > Mobile : +91 9860582533
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Regardind configuration in server.xml

2006-05-25 Thread Monkeyden

damn!   Mutator, not accessor.

On 5/25/06, Monkeyden <[EMAIL PROTECTED]> wrote:


 Ah, ok.  This is from the struts-config DTD.  Looks like you need to
define an accessor, named setTest, in your RequestProcessor.


When the object representing the surrounding element is instantiated, the
accessor for the indicated property is called and passed the indicated
value.



 On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
>
> Thats because I've changed the tag before sending the code to the list.
> The original version was in portuguese...teste... :-) I've definded a
> setTeste method
> and a teste property.
>
> So that's OK..
>
> On 5/25/06, Monkeyden <[EMAIL PROTECTED]> wrote:
> >
> > You always have to watch your "testes" when overrriding the
> > RequestProcessor.  Looks like you have a typo.
> >
> > java.lang.NoSuchMethodException: Bean has no property named teste
> >at org.apache.commons.digester.SetPropertyRule.begin(
> >
> >
> > On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > I wrote a new controller class, which extends TileRequestProcessor,
> in
> > > order
> > > to solve a problem we had with POST requests enconding (UTF-8),
> > specially
> > > with multipart-form requests.
> > >
> > > I'm now trying to pass some paremeters to the new controller, using
> > > the set-property tag in server.xml
> > >
> > >  > > processorClass="utilities.MyTilesRequestProcessor"
> > > contentType="text/html; charset=UTF-8">
> > > 
> > > 
> > >
> > > but its not working. I've created a setTest method in my processor,
> but
> > > I'm
> > > still geeting the following exception:
> > >
> > > May 25, 2006 9:07:12 AM
> org.apache.commons.digester.DigesterstartElement
> > > SEVERE: Begin event threw exception
> > > java.lang.NoSuchMethodException: Bean has no property named teste
> > > at org.apache.commons.digester.SetPropertyRule.begin(
> > > SetPropertyRule.java:144)
> > > at org.apache.commons.digester.Rule.begin (Rule.java:152)
> > > at org.apache.commons.digester.Digester.startElement(
> Digester.java
> > > :1286)
> > > at
> > >
> >
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(
> > > AbstractSAXParser.java:533)
> > > at
> > >
> > >
> >
> 
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement
> > > (AbstractXMLDocumentParser.java :220)
> > > at
> > >
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement
> > (
> > > XMLDTDValidator.java:819)
> > > at
> > >
> > >
> >
> 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
> > > (XMLNSDocumentScannerImpl.java:316)
> > > at
> > >
> > >
> >
> 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> > > ( XMLDocumentFragmentScannerImpl.java:1693)
> > > at
> > >
> > >
> >
> 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
> > > (XMLDocumentFragmentScannerImpl.java :368)
> > > at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > > (
> > > XML11Configuration.java:834)
> > > at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > > (
> > > XML11Configuration.java:764)
> > > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> > > XMLParser.java:148)
> > > at
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (
> > > AbstractSAXParser.java:1242)
> > > at org.apache.commons.digester.Digester.parse(Digester.java
> :1572)
> > > at org.apache.struts.action.ActionServlet.parseModuleConfigFile(
> > > ActionServlet.java:738)
> > > at org.apache.struts.action.ActionServlet.initModuleConfig(
> > > ActionServlet.java:687)
> > > at org.apache.struts.action.ActionServlet.init(
> ActionServlet.java
> > :333)
> > > at javax.servlet.GenericServlet.init(GenericServlet.java:211)
> > > at org.apache.catalina.core.StandardWrapper.loadServlet(
> > > StandardWrapper.java:1091)
> > > at org.apache.catalina.core.StandardWrapper.load(
> > StandardWrapper.java
> > > :925)
> > > at org.apache.catalina.core.StandardContext.loadOnStartup(
> > > StandardContext.java:3857)
> > > at org.apache.catalina.core.StandardContext.start(
> > StandardContext.java
> > > :4118)
> > > at org.apache.catalina.core.ContainerBase.addChildInternal(
> > > ContainerBase.java:759)
> > > at org.apache.catalina.core.ContainerBase.addChild(
> > ContainerBase.java
> > > :739)
> > > at org.apache.catalina.core.StandardHost.addChild(
> StandardHost.java
> > > :524)
> > > at org.apache.catalina.startup.HostConfig.deployWAR (
> HostConfig.java
> > > :788)
> > > at org.apache.catalina.startup.HostConfig.deployApps(
> HostConfig.java
> > > :498)
> > > at org.apache.catalina.startup.HostConfig.check(HostConfig.java
> > :1179)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >

Re: Regardind configuration in server.xml

2006-05-25 Thread Monkeyden

Ah, ok.  This is from the struts-config DTD.  Looks like you need to define
an accessor, named setTest, in your RequestProcessor.


When the object representing the surrounding element is instantiated, the
accessor for the indicated property is called and passed the indicated
value.



On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:


Thats because I've changed the tag before sending the code to the list.
The original version was in portuguese...teste... :-) I've definded a
setTeste method
and a teste property.

So that's OK..

On 5/25/06, Monkeyden <[EMAIL PROTECTED]> wrote:
>
> You always have to watch your "testes" when overrriding the
> RequestProcessor.  Looks like you have a typo.
>
> java.lang.NoSuchMethodException: Bean has no property named teste
>at org.apache.commons.digester.SetPropertyRule.begin(
>
>
> On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I wrote a new controller class, which extends TileRequestProcessor, in
> > order
> > to solve a problem we had with POST requests enconding (UTF-8),
> specially
> > with multipart-form requests.
> >
> > I'm now trying to pass some paremeters to the new controller, using
> > the set-property tag in server.xml
> >
> >  > processorClass="utilities.MyTilesRequestProcessor"
> > contentType="text/html; charset=UTF-8">
> > 
> > 
> >
> > but its not working. I've created a setTest method in my processor,
but
> > I'm
> > still geeting the following exception:
> >
> > May 25, 2006 9:07:12 AM
org.apache.commons.digester.DigesterstartElement
> > SEVERE: Begin event threw exception
> > java.lang.NoSuchMethodException: Bean has no property named teste
> > at org.apache.commons.digester.SetPropertyRule.begin(
> > SetPropertyRule.java:144)
> > at org.apache.commons.digester.Rule.begin(Rule.java:152)
> > at org.apache.commons.digester.Digester.startElement(Digester.java
> > :1286)
> > at
> >
>
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(
> > AbstractSAXParser.java:533)
> > at
> >
> >
>
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement
> > (AbstractXMLDocumentParser.java:220)
> > at
> >
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement
> (
> > XMLDTDValidator.java:819)
> > at
> >
> >
>
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
> > (XMLNSDocumentScannerImpl.java:316)
> > at
> >
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> > (XMLDocumentFragmentScannerImpl.java:1693)
> > at
> >
> >
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
> > (XMLDocumentFragmentScannerImpl.java:368)
> > at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > (
> > XML11Configuration.java:834)
> > at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> > (
> > XML11Configuration.java:764)
> > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> > XMLParser.java:148)
> > at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(
> > AbstractSAXParser.java:1242)
> > at org.apache.commons.digester.Digester.parse(Digester.java:1572)
> > at org.apache.struts.action.ActionServlet.parseModuleConfigFile(
> > ActionServlet.java:738)
> > at org.apache.struts.action.ActionServlet.initModuleConfig(
> > ActionServlet.java:687)
> > at org.apache.struts.action.ActionServlet.init(ActionServlet.java
> :333)
> > at javax.servlet.GenericServlet.init(GenericServlet.java:211)
> > at org.apache.catalina.core.StandardWrapper.loadServlet(
> > StandardWrapper.java:1091)
> > at org.apache.catalina.core.StandardWrapper.load(
> StandardWrapper.java
> > :925)
> > at org.apache.catalina.core.StandardContext.loadOnStartup(
> > StandardContext.java:3857)
> > at org.apache.catalina.core.StandardContext.start(
> StandardContext.java
> > :4118)
> > at org.apache.catalina.core.ContainerBase.addChildInternal(
> > ContainerBase.java:759)
> > at org.apache.catalina.core.ContainerBase.addChild(
> ContainerBase.java
> > :739)
> > at org.apache.catalina.core.StandardHost.addChild(
StandardHost.java
> > :524)
> > at org.apache.catalina.startup.HostConfig.deployWAR(
HostConfig.java
> > :788)
> > at org.apache.catalina.startup.HostConfig.deployApps(
HostConfig.java
> > :498)
> > at org.apache.catalina.startup.HostConfig.check(HostConfig.java
> :1179)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at org.apache.commons.modeler.BaseModelMBean.invoke(
> > BaseModelMBean.java
> > :503)
> > at com.sun

RE: How can I pass all the request parameters into a bean ?

2006-05-25 Thread Chaudhary, Harsh
Isn't that what Struts forms do out of thye box.

Harsh.

-Original Message-
From: Eric Chow [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 3:29 AM
To: Struts User List
Subject: How can I pass all the request parameters into a bean ?


Hello,

How can I pass all the request parameters into a bean ?

For example:

class User {
private int id;
private String name;
private String sex;
private Dat birth;
private boolean status;
}


How can I set all the request parameters into the User if those
parameters name contains any (id, name, sex, birth and status) ?


The utility prototype :

public Object getFormBean(Class formClass, HttpServletRequest request) {


}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: urgent

2006-05-25 Thread Chaudhary, Harsh
If you look at the HTML source of the file, you will see that the table
structure generated by DisplayTag by default looks something like:











The class is the key as it differentiates odd and even rows. Now all you
need is to write a CSS file which does what you want.

Harsh.

-Original Message-
From: Abhimanyu Koul [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 12:56 AM
To: Struts Mailing list
Subject: urgent


hi all!
I want to display the records in a list using display tag in a tabular
form. 
But i need to alternate row background colours using css. i am not able
to figure out how.
how do we alternate styles in rows of a table using css and display tag.


Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Object size in App Server

2006-05-25 Thread Ed Griebel

For interactive session viewing look at
http://messadmin.sourceforge.net/. It's not something I'd put on a
production server, but it is useful for testing.

-ed

On 5/25/06, Chaudhary, Harsh <[EMAIL PROTECTED]> wrote:

I just wrote the object to a file as a bit blob and looked at the file
size. But I needed something quick and dirty and not necessarily
extremely accurate.
Harsh.

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 12:16 AM
To: Struts Users Mailing List
Subject: Re: Object size in App Server


I can help with the session size at least:

http://javawebparts.sourceforge.net

Specifically, the SessionSize class:

http://javawebparts.sourceforge.net/javadocs/javawebparts/session/Sessio
nSize.html

I think you should be able to yank that code and and make it generic to
work with any Object (it must be serializable though), in which case you

  can get the size of a ResultSet too.

Frank

Hanmay Udgiri wrote:
> Hi
> I am getting a ResultSet from database.
> I want to get the size of the object in the App Server.
> Also I want to get the size of session object after the user is
validated
> and the user details are added to session.
>
> Thanks and Regards
> Hanmayya Udgiri
>

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: More then 1 Action Forms in JSP

2006-05-25 Thread Chaudhary, Harsh
Sure its possible for a JSP to call 2 different actions. You just need 2
different forms pointing to different actions. 

I would implement an action like DispatchAction and determine
programatically which action to forward the user to. This also helps if
I need to change the design in the future.

Harsh.

-Original Message-
From: Raghuveer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 12:42 AM
To: user@struts.apache.org
Subject: More then 1 Action Forms in JSP



I have 10 JSP's and used 10 Action forms,10 action classes(dispatch
action
and action) with 10 Action Mappings in Struts-config.xml.

I have 1 common functionality where if user clicks HELP button in any
screen
i need to get documennt stored in database and show to user.

Question1)

Is it possiable to user 2 actionforms in 1 JSP ?

Question2)
What is best way to implemt such scenerios in struts.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Regardind configuration in server.xml

2006-05-25 Thread Miguel Galves

Thats because I've changed the tag before sending the code to the list.
The original version was in portuguese...teste... :-) I've definded a
setTeste method
and a teste property.

So that's OK..

On 5/25/06, Monkeyden <[EMAIL PROTECTED]> wrote:


You always have to watch your "testes" when overrriding the
RequestProcessor.  Looks like you have a typo.

java.lang.NoSuchMethodException: Bean has no property named teste
   at org.apache.commons.digester.SetPropertyRule.begin(


On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I wrote a new controller class, which extends TileRequestProcessor, in
> order
> to solve a problem we had with POST requests enconding (UTF-8),
specially
> with multipart-form requests.
>
> I'm now trying to pass some paremeters to the new controller, using
> the set-property tag in server.xml
>
>  processorClass="utilities.MyTilesRequestProcessor"
> contentType="text/html; charset=UTF-8">
> 
> 
>
> but its not working. I've created a setTest method in my processor, but
> I'm
> still geeting the following exception:
>
> May 25, 2006 9:07:12 AM org.apache.commons.digester.DigesterstartElement
> SEVERE: Begin event threw exception
> java.lang.NoSuchMethodException: Bean has no property named teste
> at org.apache.commons.digester.SetPropertyRule.begin(
> SetPropertyRule.java:144)
> at org.apache.commons.digester.Rule.begin(Rule.java:152)
> at org.apache.commons.digester.Digester.startElement(Digester.java
> :1286)
> at
>
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(
> AbstractSAXParser.java:533)
> at
>
>
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement
> (AbstractXMLDocumentParser.java:220)
> at
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement
(
> XMLDTDValidator.java:819)
> at
>
>
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
> (XMLNSDocumentScannerImpl.java:316)
> at
>
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> (XMLDocumentFragmentScannerImpl.java:1693)
> at
>
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
> (XMLDocumentFragmentScannerImpl.java:368)
> at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> (
> XML11Configuration.java:834)
> at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> (
> XML11Configuration.java:764)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> XMLParser.java:148)
> at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(
> AbstractSAXParser.java:1242)
> at org.apache.commons.digester.Digester.parse(Digester.java:1572)
> at org.apache.struts.action.ActionServlet.parseModuleConfigFile(
> ActionServlet.java:738)
> at org.apache.struts.action.ActionServlet.initModuleConfig(
> ActionServlet.java:687)
> at org.apache.struts.action.ActionServlet.init(ActionServlet.java
:333)
> at javax.servlet.GenericServlet.init(GenericServlet.java:211)
> at org.apache.catalina.core.StandardWrapper.loadServlet(
> StandardWrapper.java:1091)
> at org.apache.catalina.core.StandardWrapper.load(
StandardWrapper.java
> :925)
> at org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3857)
> at org.apache.catalina.core.StandardContext.start(
StandardContext.java
> :4118)
> at org.apache.catalina.core.ContainerBase.addChildInternal(
> ContainerBase.java:759)
> at org.apache.catalina.core.ContainerBase.addChild(
ContainerBase.java
> :739)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java
> :524)
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java
> :788)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
> :498)
> at org.apache.catalina.startup.HostConfig.check(HostConfig.java
:1179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.commons.modeler.BaseModelMBean.invoke(
> BaseModelMBean.java
> :503)
> at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(
> DynamicMetaDataImpl.java:213)
> at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java
:220)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(
> DefaultMBeanServerInterceptor.java:815)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java
> :784)
> at org.apache.catalina.manager.ManagerServlet.check(
> ManagerServlet.java
> :1377)
> at org.apache.catalina.manager.ManagerServlet.deploy(
> ManagerServlet.java
> :636)
> at org.apache.catalina.manager.ManagerServlet.

RE: Object size in App Server

2006-05-25 Thread Chaudhary, Harsh
I just wrote the object to a file as a bit blob and looked at the file
size. But I needed something quick and dirty and not necessarily
extremely accurate.
Harsh.

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 12:16 AM
To: Struts Users Mailing List
Subject: Re: Object size in App Server


I can help with the session size at least:

http://javawebparts.sourceforge.net

Specifically, the SessionSize class:

http://javawebparts.sourceforge.net/javadocs/javawebparts/session/Sessio
nSize.html

I think you should be able to yank that code and and make it generic to 
work with any Object (it must be serializable though), in which case you

  can get the size of a ResultSet too.

Frank

Hanmay Udgiri wrote:
> Hi
> I am getting a ResultSet from database.
> I want to get the size of the object in the App Server.
> Also I want to get the size of session object after the user is
validated
> and the user details are added to session.
> 
> Thanks and Regards
> Hanmayya Udgiri
> 

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Regardind configuration in server.xml

2006-05-25 Thread Monkeyden

You always have to watch your "testes" when overrriding the
RequestProcessor.  Looks like you have a typo.

java.lang.NoSuchMethodException: Bean has no property named teste
  at org.apache.commons.digester.SetPropertyRule.begin(


On 5/25/06, Miguel Galves <[EMAIL PROTECTED]> wrote:


Hi,

I wrote a new controller class, which extends TileRequestProcessor, in
order
to solve a problem we had with POST requests enconding (UTF-8), specially
with multipart-form requests.

I'm now trying to pass some paremeters to the new controller, using
the set-property tag in server.xml





but its not working. I've created a setTest method in my processor, but
I'm
still geeting the following exception:

May 25, 2006 9:07:12 AM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.NoSuchMethodException: Bean has no property named teste
at org.apache.commons.digester.SetPropertyRule.begin(
SetPropertyRule.java:144)
at org.apache.commons.digester.Rule.begin(Rule.java:152)
at org.apache.commons.digester.Digester.startElement(Digester.java
:1286)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(
AbstractSAXParser.java:533)
at

com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement
(AbstractXMLDocumentParser.java:220)
at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(
XMLDTDValidator.java:819)
at

com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
(XMLNSDocumentScannerImpl.java:316)
at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
(XMLDocumentFragmentScannerImpl.java:1693)
at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(
XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(
XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(
AbstractSAXParser.java:1242)
at org.apache.commons.digester.Digester.parse(Digester.java:1572)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(
ActionServlet.java:738)
at org.apache.struts.action.ActionServlet.initModuleConfig(
ActionServlet.java:687)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1091)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java
:925)
at org.apache.catalina.core.StandardContext.loadOnStartup(
StandardContext.java:3857)
at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4118)
at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java
:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java
:524)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java
:788)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
:498)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.modeler.BaseModelMBean.invoke(
BaseModelMBean.java
:503)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(
DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(
DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java
:784)
at org.apache.catalina.manager.ManagerServlet.check(
ManagerServlet.java
:1377)
at org.apache.catalina.manager.ManagerServlet.deploy(
ManagerServlet.java
:636)
at org.apache.catalina.manager.ManagerServlet.doPut(
ManagerServlet.java
:423)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:712)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)

Re: More then 1 Action Forms in JSP

2006-05-25 Thread Monkeyden

As in a pop-up?  If so, then you create a HelpAction and JSP, which would be
expecting a request parameter specifiying the current screen.  Use that
parameter to determine what content to fetch.  Basically, it's a new
Action.  The only thing your 10 existing screens will be responsible for is
passing that request parameter (likely on the querystring).

On 5/25/06, Raghuveer <[EMAIL PROTECTED]> wrote:



I have 10 JSP's and used 10 Action forms,10 action classes(dispatch action
and action) with 10 Action Mappings in Struts-config.xml.

I have 1 common functionality where if user clicks HELP button in any
screen
i need to get documennt stored in database and show to user.

Question1)

Is it possiable to user 2 actionforms in 1 JSP ?

Question2)
What is best way to implemt such scenerios in struts.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Regardind configuration in server.xml

2006-05-25 Thread Miguel Galves

Hi,

I wrote a new controller class, which extends TileRequestProcessor, in order
to solve a problem we had with POST requests enconding (UTF-8), specially
with multipart-form requests.

I'm now trying to pass some paremeters to the new controller, using
the set-property tag in server.xml


   
   

but its not working. I've created a setTest method in my processor, but I'm
still geeting the following exception:

May 25, 2006 9:07:12 AM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.NoSuchMethodException: Bean has no property named teste
   at org.apache.commons.digester.SetPropertyRule.begin(
SetPropertyRule.java:144)
   at org.apache.commons.digester.Rule.begin(Rule.java:152)
   at org.apache.commons.digester.Digester.startElement(Digester.java:1286)
   at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(
AbstractSAXParser.java:533)
   at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement
(AbstractXMLDocumentParser.java:220)
   at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(
XMLDTDValidator.java:819)
   at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
(XMLNSDocumentScannerImpl.java:316)
   at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
(XMLDocumentFragmentScannerImpl.java:1693)
   at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
(XMLDocumentFragmentScannerImpl.java:368)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
XML11Configuration.java:834)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
XML11Configuration.java:764)
   at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
XMLParser.java:148)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(
AbstractSAXParser.java:1242)
   at org.apache.commons.digester.Digester.parse(Digester.java:1572)
   at org.apache.struts.action.ActionServlet.parseModuleConfigFile(
ActionServlet.java:738)
   at org.apache.struts.action.ActionServlet.initModuleConfig(
ActionServlet.java:687)
   at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1091)
   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java
:925)
   at org.apache.catalina.core.StandardContext.loadOnStartup(
StandardContext.java:3857)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4118)
   at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:759)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java
:739)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:788)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java
:498)
   at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1179)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java
:503)
   at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(
DynamicMetaDataImpl.java:213)
   at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
   at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(
DefaultMBeanServerInterceptor.java:815)
   at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java
:784)
   at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java
:1377)
   at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java
:636)
   at org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java
:423)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:712)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:482)
   at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)

Re: Ajax and MVC pattern

2006-05-25 Thread Ian Roughley
I think that the controller is always going to be in struts.  There 
reason is this - the action will be obtaining some input, coordinating 
with the back-end services, retrieving the model to be rendered and then 
rendering the model into a view which could be HTML or XML/JSON which is 
more "ajax-ish".  So obtaining the information is self contained.  If 
you think of SOA or web services it is the same - the client calls a 
service for a result, and is self contained.


As far as separate views go - sure.  But it would need to be controlled 
by the action and possible header or URI information.  In the full page 
case you get more information and return the whole page rendered by 
returning one result, in the fragment case you return a different result 
that returns a subset.  I think this is how rails does it.  But remember 
- if you are sending all the ajax request fragments to one action it is 
going to have to have a lot of different logic in it.  The way I usually 
construct apps is to make a base assumption that ajax is being used and 
to create a namespace/URI that is for only ajax requests.


Hope this helps.

/Ian

--

From Down & Around, Inc.

Innovative IT Solutions
Software Architecture * Design * Development
~
web:  www.fdar.com  
email [EMAIL PROTECTED]  
phone:617.821.5430

~



Adam Hardy wrote:
I have only a small knowledge of the Ajax frameworks out there and I 
am trying to work out how much an Ajax app would depend on Struts.


I assume the view in an Ajax app is handled at the initial request by 
a JSP with HTML and that afterwards every request from the browser is 
XHR, ideally broken down on a per-data-item/list basis. The view HTML 
is from there on in handled by Ajax. In that case the Controller part 
of MVC would be managed entirely client-side.
Therefore all that struts would have to offer the app would be 
Validator and perhaps a couple of other services.
Or am I totally wrong? Can struts offer the ability to manage the 
Controller part of the app in such a way that the project could have 
two views - one in Ajax and one in JSPs?


I'm aware of much discussion of enhancing Struts Action 2 to 
facilitate Ajax development. It seems I'm missing something though. 
Can anyone elaborate a little on what it is facilitating?


Thanks
Adam

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: popup

2006-05-25 Thread Monkeyden

Is this a Struts question?

On 5/25/06, Abhimanyu Koul <[EMAIL PROTECTED]> wrote:


how can i use a popup window to search for a record from the database and
on clicking any record in the popup window, i should get that value into my
text box.


   search


Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533




Re: number of days

2006-05-25 Thread Bart Busschots
In that case this is very much a JavaScript question and not a Struts 
one. I can tell you that the JavaScript Date functions are terrible. You 
could adapt my previous technique as follows:


1) Create a variable for holding the total
2) Create a Date object form both the start and end dates.
3) Convert these to JS Time Stamps (there is a JS function for this in 
the Date object), a JS time stamp is the number of milliseconds since 
Jan 1 1970.

4) Run a loop like:
for(var x = startTimeStamp;xthe number of MilliSeconds in a day

  //create a JS Date object for the current day we are checking (x)
  // then do the same as with the Java sudo code I posted before
}

Abhimanyu Koul wrote:

thanks.
but i am really looking for a way to do this on the client side.
any idea?

Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533
- Original Message -
From: "Bart Busschots" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, May 25, 2006 5:34 PM
Subject: Re: number of days


  

This isn't a struts question but anyway, assuming you want to do this on
the server side and not on the client side (you'd be mad to do it on the
client side) the java Date related utility classes will be able to help
you out (java.util.Calendar, java.util.GregorialCalendar, java.util.Date).

The way I would do it would be something like this:
1) Create a counter to hold your total
2) Create a date for your start time and for your end time
3) Convert the date for your start time to a Calendar
Write a while loop something like:

while(startDate.before(EndDate)){
   if(startDate is a Sunday){
   ; file://do nothing
   }if(startDate is a Saturday){
  total += 0.5;
   }else{
  total += 1.0;
   }
   file://add a day to the Start Date
}

HTH, Bart.

Abhimanyu Koul wrote:


hi!
i am really struggling to find a  way to calculate number of days
  

between two dates in mm/dd/ which i get using javascript popup
calendars.  excluding sundays and half saturdays.
  

the number of days i have to record in the database.
please help

Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: change date validator-rules

2006-05-25 Thread Stanislav
The thing is that user can input nothing in filed, but if they input # than 
date validation is
"skipped", but if input is different from # then date validation is executed. 
My idea was to change
date validation to check if the input if equal #, but my knowledge of js is 
very limited, and dont
know how to do that :-(

can you give me some example?

Tnx,
Stanislav


- Original Message Follows -
> Write a custom validator rule, check for the field value and if the value is
> not #, then set error message.
> 
> HTH,
> 
> 
> On 5/25/06, Stanislav <[EMAIL PROTECTED]> wrote:
> >
> > Hi!
> >
> > I want to change date validator-rules so ih the input data id equal "#"
> > than return that everything
> > is ok... How can i do that?
> >
> > Tnx, Stanislav
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: change date validator-rules

2006-05-25 Thread Vinit Sharma

Write a custom validator rule, check for the field value and if the value is
not #, then set error message.

HTH,


On 5/25/06, Stanislav <[EMAIL PROTECTED]> wrote:


Hi!

I want to change date validator-rules so ih the input data id equal "#"
than return that everything
is ok... How can i do that?

Tnx, Stanislav

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Vinit Sharma
IBM


Re: number of days

2006-05-25 Thread Abhimanyu Koul
thanks.
but i am really looking for a way to do this on the client side.
any idea?

Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533
- Original Message -
From: "Bart Busschots" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, May 25, 2006 5:34 PM
Subject: Re: number of days


> This isn't a struts question but anyway, assuming you want to do this on
> the server side and not on the client side (you'd be mad to do it on the
> client side) the java Date related utility classes will be able to help
> you out (java.util.Calendar, java.util.GregorialCalendar, java.util.Date).
>
> The way I would do it would be something like this:
> 1) Create a counter to hold your total
> 2) Create a date for your start time and for your end time
> 3) Convert the date for your start time to a Calendar
> Write a while loop something like:
>
> while(startDate.before(EndDate)){
>if(startDate is a Sunday){
>; file://do nothing
>}if(startDate is a Saturday){
>   total += 0.5;
>}else{
>   total += 1.0;
>}
>file://add a day to the Start Date
> }
>
> HTH, Bart.
>
> Abhimanyu Koul wrote:
> > hi!
> > i am really struggling to find a  way to calculate number of days
between two dates in mm/dd/ which i get using javascript popup
calendars.  excluding sundays and half saturdays.
> > the number of days i have to record in the database.
> > please help
> >
> > Abhimanyu Koul
> > FinEng Solutions (P)  Ltd.
> > Dani Compound,
> > 158, Vidyanagari Marg,
> > Kalina, Santacruz (East),
> > Mumbai - 400 098
> > Mobile : +91 9860582533
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: number of days

2006-05-25 Thread Bart Busschots
This isn't a struts question but anyway, assuming you want to do this on 
the server side and not on the client side (you'd be mad to do it on the 
client side) the java Date related utility classes will be able to help 
you out (java.util.Calendar, java.util.GregorialCalendar, java.util.Date).


The way I would do it would be something like this:
1) Create a counter to hold your total
2) Create a date for your start time and for your end time
3) Convert the date for your start time to a Calendar
Write a while loop something like:

while(startDate.before(EndDate)){
  if(startDate is a Sunday){
  ; //do nothing
  }if(startDate is a Saturday){
 total += 0.5;
  }else{
 total += 1.0;
  }
  //add a day to the Start Date
}

HTH, Bart.

Abhimanyu Koul wrote:

hi!
i am really struggling to find a  way to calculate number of days between two 
dates in mm/dd/ which i get using javascript popup calendars.  excluding 
sundays and half saturdays.
the number of days i have to record in the database.
please help

Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



number of days

2006-05-25 Thread Abhimanyu Koul
hi!
i am really struggling to find a  way to calculate number of days between two 
dates in mm/dd/ which i get using javascript popup calendars.  excluding 
sundays and half saturdays.
the number of days i have to record in the database.
please help

Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533


Re: popup

2006-05-25 Thread Deva Pitchai(NatureSoft)

try this..

onclick of the text link.. put this line

*window.opener*.getElementById('a_id').*value = "somevalue";

*

--
Regards,
Deva.



Abhimanyu Koul wrote:


how can i use a popup window to search for a record from the database and on 
clicking any record in the popup window, i should get that value into my text 
box.


   search


Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533

 





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



popup

2006-05-25 Thread Abhimanyu Koul
how can i use a popup window to search for a record from the database and on 
clicking any record in the popup window, i should get that value into my text 
box.


   search


Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533


change date validator-rules

2006-05-25 Thread Stanislav
Hi!

I want to change date validator-rules so ih the input data id equal "#" than 
return that everything
is ok... How can i do that?

Tnx, Stanislav

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How can I pass all the request parameters into a bean ?

2006-05-25 Thread Eric Chow

Hello,

How can I pass all the request parameters into a bean ?

For example:

class User {
   private int id;
   private String name;
   private String sex;
   private Dat birth;
   private boolean status;
}


How can I set all the request parameters into the User if those
parameters name contains any (id, name, sex, birth and status) ?


The utility prototype :

public Object getFormBean(Class formClass, HttpServletRequest request) {


}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]