David, Many thanks.
-Miles > -----Original Message----- > From: David G. Friedman [mailto:[EMAIL PROTECTED] > Sent: 25 November 2004 17:49 > To: Struts Users Mailing List > Subject: RE: Client side validation broken when using > DynaValidatorActionForm. > > Miles, > > Validation based on actions has that slash-in-the-name > related problem. You can specify a name for the validation > method using the html:javascript attribute method="...". > Just be sure to change your html:form's onsubmit to invoke > that new method name. For example: > > <html:javascript formName="/someActionName" > method="validateForm" /> <html:form action="..." ... > onsubmit="return(validateForm(this));"> > > Just use the name "validateForm" or change it to any valid > JavaScript method name of your choice. For more details see: > > http://forum.java.sun.com/thread.jspa?forumID=45&messageID=267 > 4439&threadID= > 548445 > http://homepage2.nifty.com/ymagic/struts/OtherTranslate/Struts > Validator/jspt > ags-jp.html > > Regards, > David > > -----Original Message----- > From: Daffin, Miles (Company IT) > [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 25, 2004 11:38 AM > To: Struts Users Mailing List > Subject: Client side validation broken when using > DynaValidatorActionForm. > > > Hi All, > > Apologies if this one has already been covered (I searched the list). > > I am using struts 1.1 with one DynaValidatorActionForm for > holding data from multiple jsp forms (wizard style reg form). > > The server side validation works fine but the generated > javascript is broken. The name of the form validating > function is taken directly from the form name attribute in > the form-validation formset (validation.xml), and this > contains '/' characters because it is the path to the relevant action. > > Is this a bug, or am I misusing/misunderstanding something? > > Thanks. > > -Miles > > Miles Daffin > Morgan Stanley > 20 Cabot Square | Canary Wharf | London E14 4QA | UK > Tel: +44 (0) 20 767 75119 > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > -------------------------------------------------------- > > NOTICE: If received in error, please destroy and notify > sender. Sender does not waive confidentiality or privilege, > and use is prohibited. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]