<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>
Run Code Online (Sandbox Code Playgroud)
在上面的动作映射中,我将从SomeAction重定向到OtherAction.我遇到了问题,因为不幸的是我需要在两个操作之间传递大量数据.IE7只允许GET请求像2k一样,当响应调用另一个动作的get请求时,当我刚刚超过该限制时它会爆炸.
我是否可以设置此重定向,最终将POST调用到其他操作?
现在我尝试使用我的Struts 1.3 Web应用程序中的一些参数从动作类重定向到动作类,这是我的代码
ActionRedirect redirect = new ActionRedirect(mapping.findForward(forwardPage));
redirect.addParameter("method", forwardPage);
redirect.addParameter("username", "user");
redirect.addParameter("password", "PWD");
redirect.addParameter("forwardPage", "success");
return redirect;
Run Code Online (Sandbox Code Playgroud)
它工作正常,但所有参数都显示在地址栏中,如何将其重定向为POST请求参数(隐藏参数)