1 . Using struts (2.1.6) how would you pass values from one action to another other than keeping them in model? Is there any other way?
2. I am redirecting one action to second action using type="redirect". Version Struts 2.1.6. Below is the xml code. If I set some actionerrors/fielderros in MyAction (first action), they are lost while executing second action and not appearing in my jsp "PageDisplay". So when we do a redirect, how do I carry forwrd the action errors from action1 to page (action2 should also be executed)? You may ask me whey would I execute second action when the first one has error? It depends on the type of error I get in action1, for some of the action erros that I set, still I need to execute the second action and display the first action error message in the jsp. Below is the xml code. <action name="MyAction1" class="com.abc.xyz.MyAction"> <interceptor-ref name="myStack" /> <result name="success" type="redirect">YourAction</result> </action> <action name="YourAction1" class="com.abc.xyz.YourAction"> <interceptor-ref name="myStack" /> <result name="success" type="tiles">PageDisplay</result> </action> Thanks, JB