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: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org
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:knwang@us.ibm.com] > 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" > > <rtaylor@mulework To: "Struts > Users Mailing List" <st...@jakarta.apache.org> > .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:knwang@us.ibm.com] > > Sent: Thursday, November 13, 2003 12:13 PM > > To: struts-user@jakarta.apache.org > > 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: struts-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: struts-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org
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" <rtaylor@mulework To: "Struts Users Mailing List" <st...@jakarta.apache.org> .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:knwang@us.ibm.com] > Sent: Thursday, November 13, 2003 12:13 PM > To: struts-user@jakarta.apache.org > 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: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org
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:knwang@us.ibm.com] > Sent: Thursday, November 13, 2003 12:13 PM > To: struts-user@jakarta.apache.org > 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: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org