The page attribute seems to be designed for wizard type pages where the form is saved in session. It validates all fields where the page is equal to or less than the current page. I don't think that will work for you.
If your version of Struts supports it, then there is the validwhen rule that you might be able to use (I am still using 1.1 which does not support validwhen). There is always the fall back of implementing the validate method yourself or you might be able to use ValidatorActionForm which applies validation rules based on the name of the action instead of the name of the form.
Joined: May 04, 2007
I have the form in session .
My problem is
Form A extends Form B
and all the three fields are validated in form form b
But I need to validate only one of the 3 fields in Form A.