Passing parameters in url while redirecting in Struts2
java, struts2
Solution
So far the solution that worked for me was
<result name="success" type="redirect">
<param name="location">/Pay.jsp?msg=${msg}</param>
</result>
where the setters and getters of msg are defined in the action
Problem
Possible Duplicate: Strut2 - Get Property value in next Action I am trying to achieve the following using Struts2 ``` response.sendRedirect("Pay.jsp?msg=transfer"); ``` This is what I am doing: ``` <action name="AddPayAction" class="controller.AddPayAction"> <param name="paraA"></param> <param name="paraB"></param> <param name="msg">SomeMessage</param> <result name="error">/Error.jsp</result> <result name="success" type="redirect">/Pay.jsp</result> </action> ``` Any suggestions why the above doesn't get redirected as: ``` Pay.jsp?msg=SomeMessage ```