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