do both the JSP points to the same action? I believe you can get around without coping the whole form twice. In validation.xml file the field element has an attribute "page".
Steps to try: - Add an int field called page in the form. - When JSP1 is being rendered render this field as hidden with value 0 - When JSP2 is being rendered render this field as hidden type with value 1 - In the validation.xml file create two field elements for form member that requires different validation on JSP1 and JSP2 with page value as 0 and 1 - For the rest of form members set the page value to 0
Validator doc says
- Only question I have is will Validator framework evaluate all the dependency if the dependencies are defined in more than one field element for the same element. I guess it's worth trying.
- As long as you don't enable client side validation this should be fine.
I couldn't try myself right now. Let us know if it works. [ September 26, 2006: Message edited by: Purushothaman Thambu ]
Joined: Sep 06, 2006
I had a deadline, so coudlnt experiment a lot. Maybe will try later.