If your wish is to have a different URI for each call, first.do, second.do... you have to declare an actions for each. If you have one call, general.do with one action type class and some forward in it. One action will do. Like this:
<action path="/general" type="MyCentral" > <forward name="first" path="/First.jsp" /> <forward name="second" path="/Second.jsp" /> <forward name="third" path="/Third.jsp" /> </action> -----Original Message----- From: Yaman Kumar [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 12:42 PM To: Struts Users Mailing List Subject: several jsps using 1 action class and avoiding several action statements in struts-config.xml Hi, I have 4 jsp files using one action class and action class forwards to the page which called this action class.Becoz i would like user to go back to same page from which he visited. Can i avoid writing 4 action mappings and all 4 mappings have only same action class but forward value is different to each. First.jsp calls /first.do <action path="/first" type="MyCentral" > <forward name="success" path="/First.jsp" /> </action> Second.jsp calls /second.do <action path="/second" type="MyCentral" > <forward name="success" path="/Second.jsp" /> </action> Third.jsp calls /third.do <action path="/third" type="MyCentral" > <forward name="success" path="/Third.jsp" /> </action> Fourth.jsp calls /fourth.do <action path="/fourth" type="MyCentral" > <forward name="success" path="/Fourth.jsp" /> </action> In all above action mappings the action class is same but only path and success pages are different, Is there any technique to change these paths and forward paths dynamically. TIA Yaman -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>