On Thursday 17 November 2005 13:24, Wendy Smoak wrote:
> On 11/16/05, Jesus Salvo Jr. <[EMAIL PROTECTED]> wrote:
> > Struts 1.2.7
> >
> > What I am confused about is that validation via the validation.xml seems
> > only to work ( or so I believe after reading various documentations and
> > samples ) if one uses DynaValidatorForm instead of an ActionForm.
>
> I haven't used it, but there is a "plain" ValidatorForm:
> http://struts.apache.org/struts-core/apidocs/org/apache/struts/validator/Va
>lidatorForm.html
>
> Would that work for you?
>

Yes. I have extended the form bean to use ValidatorForm.

What was missing in all my search was the you have to specify the input 
attribute on the action element. The value of the input attribute is a URI to 
forward to if validation fails.

Thanks.

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

Reply via email to