Yes, that's true and it solves my problem. Thanks for pointing that out. On a side note, is there any advantage to referencing the action path when using validator versus using the form-bean and setting validate to false in the config file?
Ryan -----Original Message----- From: Jarnot Voytek Contr AU HQ/SC [mailto:Voytek.Jarnot@;MAXWELL.AF.MIL] Sent: Thursday, November 07, 2002 5:23 AM To: 'Struts Users Mailing List' Subject: RE: problem with client-side validation and ValidatorActionForm Regardless of whether it's referenced by form-bean name or action path, wouldn't it only validate if you've got validate=true set in your <action> ? Therefore allowing you to only validate on a specific action... -----Original Message----- From: Ryan Bell [mailto:ryan@;messagecast.net] Sent: Wednesday, November 06, 2002 3:33 PM To: Struts Users Mailing List Subject: RE: problem with client-side validation and ValidatorActionForm 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> -- 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>