5
重定向動作到另一個動作struts.xml
:如何在Struts中將參數重定向爲post?
<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>
指標的影響被作爲branch_id
但其對url
,它表明類似
http://localhost:8085/Display/SectorDisplay.action?branch_id=110
我認爲它不是POST,其GET。
我不想在URL上顯示參數,有沒有什麼方法可以隱藏它或我如何發佈它的行動?
謝謝。
的可能重複(http://stackoverflow.com/問題/ 2769005 /)可以,你-DO-A-Struts2的行動 - 使用 - 後INSTEAD-OF-得到重定向, – 2015-04-02 07:38:36