Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Forward a action from one action programmatically in STruts 2.0

arunkumar S

2007-03-15

Replies:

Hi,

I have a requirement where in the action has to be forwarded based on
certain runtime conditions.The destination will be decided only on the
runtime.
-------------------------------
if(Input = "Case1" )
forward action1
else
forward action2.
-------------------------------

Basically i want to acheive a simple forward( requestdispatcher.forward() ) in
ActionClass in Struts 2.0.

How can we acheive this in Struts 2.0. I dont have any API to acheive this.

Any inputs pls?


Regards,
Arun
©2008 junlu.com - Jax Systems, LLC, U.S.A.