DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17667>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17667 Client-side validation with multi-form page Summary: Client-side validation with multi-form page Product: Struts Version: 1.1 RC1 Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: Other Component: Validator Framework AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] if you have two forms on your page with validation (e.g. DateValidation) the two <html:javascript> tags generates two function with the same name (e.g. DateValidations() ). My suggestion is to generate functions with prefix (or postfix) of the form: function FormName_DateValidations(){ this.aa = .... this.ab = .... } That means also you have to modify the javascript method (defined in the validator-rules.xml). In my example: //// begin original code function validateDate(form) { var bValid = true; var focusField = null; var i = 0; var fields = new Array(); oDate = new DateValidations(); //// end original code //// begin modified code function validateDate(form) { var bValid = true; var focusField = null; var i = 0; var fields = new Array(); oDate = eval('new ' + form.name +'_DateValidations();'); //// end modified code i hope you understand what i mean ;-) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]