1. 程式人生 > >Struts2之result結果型別

Struts2之result結果型別

伺服器端跳轉   客戶端跳轉 

 <action name="r1" >
            <result type="dispatcher" >/r1.jsp</result>
        </action>
        
          <action name="r2" >
            <result type="redirect" >/r2.jsp</result>
        </action>
        
          <action name="r3" >
            <result type="chain" >r1</result>
        </action>
        
          <action name="r4" >
            <result type="redirectAction" >r2</result>
        </action>

顯示位址列按順序分別為: