You will also need to set the 'type' attribute value in the form-bean
element of the struts-config file to

org.apache.struts.validator.DynaValidatorActionForm (or a subclass thereof)



robert

> -----Original Message-----
> From: Kevin Wang [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 13, 2003 2:14 PM
> To: Struts Users Mailing List
> Subject: RE: Can I use action path instead of form name in <form
> name="xxx"> in validation.xml?
>
>
>
>
>
>
> Thanks Robert! Right now my forms are extending ActionForm. Can I
> just make
> them extend DynaValidatorActionForm without changing anything
> else? What do
> I need to change if I do need to?
>
> Kevin
>
>
>
>
>
>                       "Robert Taylor"
>
>                       <[EMAIL PROTECTED]        To:       "Struts
> Users Mailing List" <[EMAIL PROTECTED]>
>                       .com>                    cc:
>
>                                                Subject:  RE: Can
> I use action path instead of form name in <form name="xxx"> in
>                       11/13/2003 11:19          validation.xml?
>
>                       AM
>
>                       Please respond to
>
>                       "Struts Users
>
>                       Mailing List"
>
>
>
>
>
>
>
> Yes. You can do this, but you have to use or subclass
> DynaValidatorActionForm.
> It uses the "path" attribute of the action mapping to determine validation
> rules
> for the request.
>
> robert
>
> > -----Original Message-----
> > From: Kevin Wang [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, November 13, 2003 12:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: Can I use action path instead of form name in <form name="xxx">
> > in validation.xml?
> >
> >
> >
> >
> >
> >
> >
> > I can't use the form names  because in our application all the
> > forms are by
> > the same session attribute.
> > I read from somewhere that I can do something like,
> >
> > <formset>
> >       <form name="/logonaction">
> >       ....
> >       </form>
> > </formset>
> >
> >
> > But I haven't been successful...Please advice, Thanks!
> >
> > Kevin
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>
>
>
> ---------------------------------------------------------------------
> 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