Multiple validation, one form

2003-09-17 Thread Ruben Carvalho
Sorry for sending this message again but I got no answer with the first one and I'm really getting crazy with it. I'm getting a bit confused with the XML validation system. I have one form (DynaValidatorForm), 3 JSPs followed by 3 actions that do nothing. My Form has 3 fields: name, address

How to display Errors as per validation in form...

2003-09-17 Thread Dhanunjaya Gotur
Hi, As I am new to Struts v1.1 ...I want to display error messages in my jsp according to validation ,The errors are as in my LoginForm The validatoin method code for Loginform is as below...and I am using Applicationresources.properties file also...So what should I need to code in my jsp..and

Multiple validation, one form

2003-09-16 Thread Ruben Carvalho
Hi again, I'm getting a bit confused with the XML validation system. I have one form (DynaValidatorForm), 3 JSPs followed by 3 actions that do nothing. My Form has 3 fields: name, address and phone, all String Now, I have 3 different JSPs, test1, test2 and test3.jsp, each of them followed

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

RE: Validation a form

2001-08-10 Thread DUPRAT Alexandre
PROTECTED] mailto:[EMAIL PROTECTED] ] Date: mercredi 8 août 2001 10:26 À: [EMAIL PROTECTED] Objet: Re: Validation a form But what is the specific error ? - Original Message - From: DUPRAT Alexandre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 11:31 PM Subject: RE

RE: Validation a form

2001-08-08 Thread DUPRAT Alexandre
is called in my Action class) -Message d'origine- De: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Date: lundi 6 août 2001 18:35 À: '[EMAIL PROTECTED]' Objet: Re: Validation a form On Mon, 6 Aug 2001, DUPRAT Alexandre wrote: hi, How can i validate a form? I tried : public

Re: Validation a form

2001-08-08 Thread Pham Thanh Quan
But what is the specific error ? - Original Message - From: DUPRAT Alexandre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 11:31 PM Subject: RE: Validation a form I don't understand why it does not work. It crashes only when the validate method is called

Validation a form

2001-08-06 Thread DUPRAT Alexandre
hi, How can i validate a form? I tried : public ActionErrors validate(ActionMapping mapping, HttpServletRequest req) { ActionErrors errors= new ActionErrors(); if(! getSqlQuery().startsWith(select)){ ActionError error = new ActionError(error.requete);

Antwort: Validation a form

2001-08-06 Thread Tobias . Himstedt
Did you enable validate=true in struts-config.xml for that action? Regards -- Tobias DUPRAT Alexandre [EMAIL PROTECTED] 06.08.2001 15:28 Bitte antworten an struts-user An:'[EMAIL PROTECTED]' [EMAIL PROTECTED] Kopie: Thema:Validation a form hi, How can i

RE: Antwort: Validation a form

2001-08-06 Thread DUPRAT Alexandre
. -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Date: lundi 6 août 2001 16:14 À: [EMAIL PROTECTED] Objet: Antwort: Validation a form Did you enable validate=true in struts-config.xml for that action? Regards -- Tobias DUPRAT Alexandre [EMAIL PROTECTED

Antwort: RE: Antwort: Validation a form

2001-08-06 Thread Tobias . Himstedt
: Validation a form i have this int parameter in web.xml for ActionServlet : init-param param-namevalidate/param-name param-valuetrue/param-value /init-param it seem to work cause i can debug the method in visula age for java. I enter the method but i've an error 500 as response from my web

Re: Validation a form

2001-08-06 Thread Craig R. McClanahan
On Mon, 6 Aug 2001, DUPRAT Alexandre wrote: hi, How can i validate a form? I tried : public ActionErrors validate(ActionMapping mapping, HttpServletRequest req) { ActionErrors errors= new ActionErrors(); if(! getSqlQuery().startsWith(select)){ ActionError