I only want to validate when a specific action is performed (server-side) so I'm extending the ValidatorActionForm for my form which is why I'm using the action-mapping in the as the form name in my validation file as described in the pdf of chapter twelve of Struts in action book:
To enable the Struts Validator for Struts 1.1, just follow the initial setup instructions in chapter 4 and extend your ActionForm from ValidatorForm and Validator- ActionForm. The ValidatorForm will match the formset name with the form-bean name. The ValidatorActionForm will match the formset name with the actionmapping path. -----Original Message----- From: Pete Gieser [mailto:pgieser@;tampabay.rr.com] Sent: Wednesday, November 06, 2002 1:07 PM To: 'Struts Users Mailing List' Subject: RE: problem with client-side validation and ValidatorActionForm I misread your configurations. Upon further review, it looks like you are putting the action instead of the form name in your validation and jsp form name property. i.e., you should have > > <formset> > > <form name="contactInfoForm"> > > <field property="companyName" depends="required"> > > <arg0 key="contactInfo.companyName.displayName" /> > > </field> > > </form> > > </formset> > > > > > > The javascript output when I add <html:javascript > > formName="contactInfoForm"/> to my jsp starts out like this: > > Pete -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>