struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iris <i...@enix.org>
Subject Re: Struts Validator
Date Tue, 17 Dec 2002 09:41:54 GMT
Suresh Addagalla wrote:

>Hi,
>
>I'm new to Struts and am trying to get a hang of Struts Validator
>framework.
>
>I defined the validator-rules.xml, application.properties,
>validator.xml. To be able to do server-side validations, is it still
>required to have the ActionForm class? If yes, do we need to override
>the validate() or what exactly is needed?
>
Yes you need an ActionForm to describe your form (get and set).
But you must no override the validate().
And to use the validator, your ActionForm must extends ValidatorForm.

Iris



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


Mime
View raw message