dear folks, I am using struts validator framework for both clientside and serverside validation. On the jsp page, I have a previous and next button, if the user clicks previous I don't want to validate; if the user clicks next I want to validate. However I can not modify the javascript function validateLogonForm because its dynamically generated. What's the best practice here to achieve my goal? for client side validation, I am thinking about inserting a hidden field, and then have two javascript functions handlePrevious and handleNext that will set the value of this field before submit the form, and then use validation rule like validwhen. Is this a valid/good approach?
Here is what my form looks like: <html:form onsubmit="return validateLogonForm(this)" action="/logon" method="post"> __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]