Hi everyone,
Using
struts 1.3.8 I configured struts dyna-validator. Everything is working fine for server side validation. But for client side validation I have following issues:
1) Used single DispatchAction class having three methods: register(-,-,-,-), login(-,-,-,-) and recovery(-,-,-,-). Configured three
jsp form pages Rgister.jsp, Login.jsp, Recovery.jsp sending
request to DispatchAction class having a method name as parameter value.
2) Configured validation rules for different jsp form pages based on their action values used in corresponding jsp pages.
3) Using single ActionForm class and single DispatchAction class.
4) Now to get dynamic client side
java script code I am putting
<html:javascript formName="fob" /> here "fob" is the ActionForm name I am using in struts-config class.
Because I put different action values in validation-user.xml file as
<form-validation>
<form-set>
<form name="/register">.....</form>
<form name="/login">......</form>
<form name="recovery">.....</form>
<form-set>
<form-validation>
I am getting the error : javax.servlet.jsp.JspException: No form found under 'fob' in locale 'en_GB'. A form must be defined in the Commons Validator configuration when dynamicJavascript="true" is set.
If you have any solution please provide your valuable suggestions.