struts2中action跳轉(zhuǎn)到另一個(gè)action的方法
Posted on 2008-05-24 14:08 cyantide 閱讀(9745) 評(píng)論(6) 編輯 收藏 所屬分類: struts2從action1直接跳轉(zhuǎn)到action2,有兩種方法:
1. 需要保存前一個(gè)action的屬性信息時(shí)使用:
<result type= "chain ">action2</result>
2. 不保存前一個(gè)action的參數(shù)可以用這種方法:
<result type= "redirect-action "> ActionName </result>
1. 需要保存前一個(gè)action的屬性信息時(shí)使用:
<result type= "chain ">action2</result>
2. 不保存前一個(gè)action的參數(shù)可以用這種方法:
<result type= "redirect-action "> ActionName </result>