RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Kandi Potter
Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:19 PM To: [EMAIL PROTECTED] Subject: How to ignore validation when form loads (first time) Hi We have JSP pages which need user input. How can I display the form initially with out validation

Re: How to ignore validation when form loads (first time)

2003-06-19 Thread Adam Hardy
ex) {return null;} I'm also interested in feed-back on my approach. -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:19 PM To: [EMAIL PROTECTED] Subject: How to ignore validation when form loads (first time) Hi We have JSP pages which need

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Kandi Potter
thanks for the feedback. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 12:57 PM To: Struts Users Mailing List Subject: Re: How to ignore validation when form loads (first time) I found that the approach with 2 action mappings worked fine

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Sashi Ravipati
, 2003 12:57 PM To: Struts Users Mailing List Subject: Re: How to ignore validation when form loads (first time) I found that the approach with 2 action mappings worked fine and I got the impression when I first chose this method that it is intended to be use this way. I also used your method

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Kandi Potter
PROTECTED] Subject: RE: How to ignore validation when form loads (first time) Even my code is working with 2 action mappings, but I have 15 JSP pages so I will have to have 30 action mappings which is worrying me. [EMAIL PROTECTED] 06/19/03 01:04PM thanks for the feedback. -Original

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Sashi Ravipati
to validate right in the form class. -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 1:24 PM To: [EMAIL PROTECTED] Subject: RE: How to ignore validation when form loads (first time) Even my code is working with 2 action mappings, but I have 15 JSP

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Yansheng Lin
To: Struts Users Mailing List Subject: RE: How to ignore validation when form loads (first time) Then are you interested in checking for an action button in the validate() to just return null()?this way you control when you want to validate right in the form class. -Original Message- From

RE: How to ignore validation when form loads (first time)

2003-06-19 Thread Wendy Smoak
Sashi wrote: I do not want to validate when page loads, so how can I avoid it unless I give validate=false in the action mapping? Override the validate method in your Form bean, and only call super.validate() when appropriate. How to decide that is up to you. I use a LookupDispatchAction, so

Re: How to ignore validation when form loads (first time)

2003-06-19 Thread Adam Hardy
as far as I am concerned, there is nothing wrong with having two action mappings. It is alot easier than coding something in the form class. I have heard of projects with many hundreds of action mappings, with no adverse impact on the project. Wendy Smoak wrote: Sashi wrote: I do not want to

How to ignore validation when form loads (first time)

2003-06-18 Thread Sashi Ravipati
Hi We have JSP pages which need user input. How can I display the form initially with out validation and then when user enters data and submits the page, the validation has to be done. I tried to accomplish it by giving two action in Struts-Config.xml. as shown below eg: action path=/AddRate