如何在Struts中将参数作为post重定向操作?

如何在Struts中将参数作为post重定向操作?,post,parameters,struts2,Post,Parameters,Struts2,将操作重定向到另一个操作struts.xml: <action name="CheckLogin" class="LoginS" method="checkLogin"> <result name="input" type="redirectAction"> <param name="actionName">SectorDisplay</param> <param name="branch_id">

将操作重定向到另一个操作
struts.xml

<action name="CheckLogin" class="LoginS" method="checkLogin">
    <result name="input" type="redirectAction">
        <param name="actionName">SectorDisplay</param>
        <param name="branch_id">${branch_id}</param>
    </result>
</action>
我认为这不是一篇文章,而是一篇文章

我不想在URL上显示参数,有没有办法隐藏它,或者如何将其发布到action


谢谢。

使用重定向,您只能传递
GET
参数。您可以使用它作为替代方案

查看这些帖子了解详细信息:

可能存在的副本
http://localhost:8085/Display/SectorDisplay.action?branch_id=110