you could use the "attribute" setting of your action-mapping. This will be used by the validator.xml file.
Basically use the same form, but the validation will be different. I think that if you reference the formName on page2 - you may have to reference using the attribute name. I haven't used the attribute setting and I don't know all the nuances of it. The other thing to do possibly is just define the same form bean name more than once with different names and each mapping has the different name with different validation. sandeep --- "Kearney, Michael" <[EMAIL PROTECTED]> wrote: > Oh well. > Certainly it would be nice if, as part of the > workflow proposal, > there were an additional <page> tag inside the > <form> tag in > validation.xml. This would allow struts to validate > by page. > > BTW, if you're coding or hardcoding the multi-page > validations in your > validate > routine you're doing it wrong. That information is > already contained in > the validation.xml file. > > -Michael > > -----Original Message----- > From: Kearney, Michael > [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 15, 2003 7:46 AM > To: 'Struts Users Mailing List' > Subject: RE: Use of Validator in a Wizard Validator > > > Hmmm, no response. Let me rephrase the question. > > How do you perform field validation in your wizards? > > Thanks, Michael > > -----Original Message----- > From: Kearney, Michael > [mailto:[EMAIL PROTECTED] > Sent: Monday, July 14, 2003 12:28 PM > To: '[EMAIL PROTECTED]' > Subject: FW: Use of Validator in a Wizard Validator > > > The "Struts in Action" book describes how to do > multipage validations in > chapter 12.10.1 > by using the following code: > if (page == 1) { > //Check page 1 properties > } > if (page == 2) ( > // And so on. > > Unfortunately, it doesn't go into detail about what > goes inside the braces. > What I'd like to know is what is the method call I > use to validate just a > single field so I > don't have to reinvent the wheel. > > Best Regards, > Michael > > > Michael P. Kearney > [EMAIL PROTECTED] > 303-444-1101 x105 > Qualstar Corporation > Advanced Development > 5480 Valmont Rd., Suite 250 > Boulder, CO 80301-2367 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]