Hi,
I am doing validation of my form bean using
struts validation framework. My actionform is getting populated by two jsps, first one is having four fields and second
jsp is having same no. of fields as in actionform.
I am validating all fields of my form in validation.xml file. For my second jsp, there is no problem. Validation is fine. But for the first JSP, jsp form fields are less than action form instance fields. Since I am using required rule on some field therefore I am getting validation error for those extra actionform fields which are not in my first jsp.
One way could be by using html:hidden fields in the first form for those extra fields and pass some default values so that validation gets bypassed firts time.
Is there any other way of doing it? What about validwhen validator rule?
Tx