I integrated struts1 and struts2 in one application.Now i am trying to call struts2 action from struts1 action class.Can you please tell me how to pass control from strtus1 to strtus2? .I have done by uing redirect action but in this case a new request and a new response are generating, it is not forwarding the exiting request object.Please let me know your valuable posts on this topic.
I achieved it in the following way
I called Struts 2 Action From Struts 1 Using the following code. Its working fine.
In web.xml add modify the strut2 filter mapping like in the following way:
Add the following code in side the struts-config.xml:(To forward action)
<action path="/helloWorldTwo" type="com.mkyong.common.action.HelloWorldActionTwo">
<forward name="success3" path="/home.action"/>
/home.action is configured inside the strtus.xml.
permaculture is a more symbiotic relationship with nature so I can be even lazier. Read tiny ad: