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>
|