Can you do a struts2 action redirect using POST instead of GET?
Posted
by Andy Pryor
on Stack Overflow
See other posts from Stack Overflow
or by Andy Pryor
Published on 2010-05-04T21:10:15Z
Indexed on
2010/05/04
21:18 UTC
Read the original article
Hit count: 244
<action name="actionA" class="com.company.Someaction">
<result name="success" type="redirect-action">
<param name="actionName">OtherActionparam>
<param name="paramA">${someParams}</param>
<param name="paramB">${someParams}</param>
<param name="aBoatLoadOfOtherParams">${aBoatLoadOfOtherParams}</param>
</result>
</action>
In the above action map, I am redirecting from SomeAction to OtherAction. I am having issues, because unfortunately I need to pass a large amount of data between the two actions. IE7 will only allow GET requests to be like 2k, so its blowing up when I'm just over that limit when the response calls a get request to the other action.
Is it possible for me to set this redirect, to end up with a POST being called to the other action?
© Stack Overflow or respective owner