struts Chain redirectAction 的用法--今天的問題

redirectAction

 

<action name="LoginAction" class="com.nhj.Action.LoginAction"  method="excute">


 <result  name="success" type="redirectAction">
  <param name="actionName">CenterAction</param>
  <param name="method">index</param></result>

 <result name="fail" type="dispatcher">/login.jsp</result>
 <result name="error" type="dispatcher">/error.jsp</result>
 <exception-mapping exception="java.lang.Exception" result="fail"/>
</action>

 

 

 

 

type="chain"

發佈了30 篇原創文章 · 獲贊 13 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章