![](/img/trans.png)
[英]How to pass request attribute from one action to another in struts2
[英]How to forward from one action to another without action class in struts2
我是Struts 2的新手。我正在將Struts 1的代碼移至Struts2。請參閱以下操作。
<action name ="formName" path="/abc.xyz.action" scope="request" type="org.apache.struts.actions.ForwardAction" parameter="/pqr.rst.do">
</action>
因此,基本上,JSP調用動作abc.xyz.action.do,而無需轉到任何動作類(JAVA類),它將此動作轉發到pqr.rst.do
如何在Struts 2中遷移此動作映射。
提前致謝。
轉發:
<action name="formName" >
<result type="redirect">/pqr.rst.do</result>
</action>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.