Struts2跳转类型

<package name="jump" extends="struts-default" namespace="/jump">
<!-- 全局跳转:在当前包中所有的Action有效 -->
<global-results>
<result name="error" type="redirect">/error.jsp</result>
</global-results>
<!-- action向jsp转发 -->
<action name="dispatcher32" class="com.c32.jump.type.action.ActionDispatcher">
<result name="disok" type="dispatcher">/index.jsp</result>
</action>
<!-- action向jsp重定向 -->
<action name="redirect32" class="com.c32.jump.type.action.ActionRedirect">
<result name="redirectok" type="redirect">/index.jsp</result>
</action>
<!-- action向action转发 -->
<action name="chain32" class="com.c32.jump.type.action.ActionChain">
<result name="chainok" type="chain">dispatcher32</result>
</action>
<!-- action向action重定向 -->
<action name="redirectAction32" class="com.c32.jump.type.action.ActionRedirectAction">
<result name="redirectActionok" type="redirectAction">dispatcher32</result>
</action>

猜你喜欢

转载自jiangmiao-2015.iteye.com/blog/2250996