struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Takhar, Sandeep" <Sandeep.Tak...@CIBC.ca>
Subject RE: validation.xml
Date Wed, 07 Apr 2004 11:23:38 GMT
and the validate="true" or was that so obvious it didn't need mentioning...

sandeep

-----Original Message-----
From: Matthias Wessendorf [mailto:mailings@matthias-wessendorf.de]
Sent: Wednesday, April 07, 2004 7:08 AM
To: 'Struts Users Mailing List'
Subject: RE: validation.xml


did you subclass from ValidatorForm
instead of ActionForm ?

cheers

-----Original Message-----
From: Zakaria khabot [mailto:z.khabot@ced.mfie.gov.ma] 
Sent: Wednesday, April 07, 2004 12:56 PM
To: Struts Users Mailing List; Struts Developers List
Subject: validation.xml


Hi all,

How to call the validator from an Action.
- in struts-config I put validate="false",
- I am using validation.xml to control erors.
- In the action I wrote :            
ActionErrors errors = new ActionErrors();

errors = form.validate(mapping, request);

but it executes the validate methode in the formAction not in the
validation.xml.



Thanks for help... 




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message