You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yaman Kumar <ya...@nous.soft.net> on 2002/06/03 11:42:06 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>