Assuming that you are a server within one action and want to call another action with some parameters.
You can use the s: action tag to invoke another action, possibly with additional / different parameters than the original action:
<s:action name="myAction" ignoreContextParams="true" executeResult="true"> <s:param name="foo" value="bar"/> </s:action>
You can also use the standard struts-xml result type with the parameter:
<result name="success" type="redirect" > <param name="location">foo.jsp?foo=${bar}</param> <param name="parse">true</param> <param name="encode">true</param> </result>
If you want to redirect the client side, you need to send the URL back to the client with the appropriate parameters and, possibly, use some kind of javascript to get there.
<s:url action="myAction" > <s:param name="foo" value="bar"/> </s:url>
krosenvold
source share