Hi Iris,

I came across the following excerpt from Struts kickstart:

"After moving all the properties out of the bean and into the DynaForm
definition in
struts-config.xml, the only thing left in the bean is the validate
function. By
using the Struts Validation framework, which ties into the Commons
Validator
package, you can remove this last piece of code and get rid of the form
bean."

Are we sure that we do need to define the form bean (which extends
ValidatorForm) if we use Struts Validator?

Thanks,
Suresh


>-----Original Message-----
>From: Iris [mailto:[EMAIL PROTECTED]] 
>Sent: Tuesday, December 17, 2002 3:12 PM
>To: Struts Users Mailing List
>Subject: Re: Struts Validator
>
>
>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

**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

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

Reply via email to