Ok I got what u r saying. What I am trying to say is that you have a single Action class but multiple action mappings(one per page) and since you can configure input setting at action mapping level therefore it will solve ur problem Structure of code will be
public class Actionclass extends org.apache.struts.action.DispatchAction { --method1 for page1 --method2 for page2 --- And so on } Struts-config.xml <path="pathforpage1" parameter="method1" input="inputforpage1" type="Actionclass" scope="session" name="ActionclassForm" > <path="pathforpage2" parameter="method2" input="inputforpage2" type="Actionclass" scope="session" name="ActionclassForm" > And so on for each page Hope it helps Satish -----Original Message----- From: teknokrat [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 6:45 PM To: [EMAIL PROTECTED] Subject: Re: I have a form spread over several pages. The user fills out each section in progression. I am using a dispatch action and each page calls the same function i.e. processForm. I want struts to validate each submission but I cannot change the input page Kataria, Satish wrote: > I am suggesting that you should have a single action having a method for > each of the page. This can be configured by using DispatchAction class > and configured in struts-config.xml using the attribute "parameter" for > finding which of the method to execute. I get you. This is what we have currently, the problem is that when the validation ( on say page 5 ) fails the user gets sent back to page one because only one input page parameter is allowed per action definition (in struts-config). It seems to me you still have to define a separate action path for each page you want validated (though it would map to a particular function in your DispatchAction ) . --------------------------------------------------------------------- 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]