When you use DynaValidatorForm, you don't really have a choice other
than to use the Validator framework as you cannot override the
validate() method. You can only override when you write your own
ActionForm.

Validating using the validator framework can help off-load traffic from
the server when you use the javascript validation as your first line of
defense. However, you should also back up your validation on the
server-side as well since malicious users can easily get around the
client-side validation.

Regards,
-Yves- 

> -----Original Message-----
> From: Gao Ye Wei [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 9:28 AM
> To: 'Struts Users Mailing List'
> Subject: Which is better? Auto validate or Manual validate?
> 
> Hi, all:
>       Which validate method is better? Declare the validate conditions
in
> the validation.xml or override the ActionForm.validate()?Thanks for
your
> respose!
> 
> Best regards!
> Gao Yewei
> 
> Email: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to