struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <maili...@matthias-wessendorf.de>
Subject RE: validation.xml
Date Wed, 07 Apr 2004 11:07:45 GMT
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


Mime
View raw message