Hi
I have a multi-page form (about 8 pages total) that take just a few fields per page that I am implementing in Struts (this is my first Struts project).
I have succeeded in setting up and implementing validation using the Validator Framework. Each page passes a "page" number and all validation rules with that page number or less are triggered on each submission.
Here in lies my problem. As the form has many steps I would like to be able to validate only the fields present on a particular page. After all the previously collected data is being held on the server side.
My understanding of the Validator Framework is that it executes any validation rule that has a page number that matches or is less than the current page number.
I have scoured the Validator Framework for a means of limiting the validator to only executing validation rules for the current page number but cannot see that option.
My work around is to pass the accumulated data back and forth in hidden fields. Its not elegant and makes the forms harder to maintain. And if some data become corrupted from all the extra handling, then the user would be presented with validation exceptions that made no sense in their current context.
I really want to user the Validator Framework as it will save me a huge amount of time and grief. I don't want to code individual validation rules in the ActionForm.
Is there a way to force this behavior of only running the validations for a specific page?
Any assistance would be greatly appreciated.
Regards, Langdon
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]