<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<!-- 告知Struts2运行时使用Spring来创建对象 -->
<constant name="struts.objectFactory" value="spring" />
<package name="default" namespace="/" extends="struts-default">
<action name="index_*" class="indexAction" method="{1}">
<!-- jsp放在/WEB-INF/ 防止没有经过action就被访问了 -->
<result name="input">/WEB-INF/jsp/ok.jsp</result>
<result name="success">/WEB-INF/jsp/index.jsp</result><!--1跳到jsp -->
<result name="add">/WEB-INF/jsp/add.jsp</result>
<result name="changeOK" type="redirectAction">index_getProduct</result> <!-- 不传值直接跳到另外1个action-->
</action>
<!--
*代表方法名
<action name="user_*" class="userAction" method="{1}">
<result name="registViewSuccess">/WEB-INF/jsp/user_registView.jsp</result>
<result name="registSuccess">/WEB-INF/jsp/user_registSuccess.jsp</result>
用户激活成功后,跳到首页去/或者跳到登陆页面去
跳转分3中,1跳到jsp
2.不传值直接跳到另外1个action (type="redirectAction")
3.把本action的值一起传到另外一个action(type="chian")
<result name="acvitedSuccess" type="redirectAction">index</result>
当无法通过拦截器验证时,拦截器自动返回input,跳回输入页面
<result name="input">/WEB-INF/jsp/user_registView.jsp</result>
</action>
-->
</package>
</struts>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<!-- 告知Struts2运行时使用Spring来创建对象 -->
<constant name="struts.objectFactory" value="spring" />
<package name="default" namespace="/" extends="struts-default">
<action name="index_*" class="indexAction" method="{1}">
<!-- jsp放在/WEB-INF/ 防止没有经过action就被访问了 -->
<result name="input">/WEB-INF/jsp/ok.jsp</result>
<result name="success">/WEB-INF/jsp/index.jsp</result><!--1跳到jsp -->
<result name="add">/WEB-INF/jsp/add.jsp</result>
<result name="changeOK" type="redirectAction">index_getProduct</result> <!-- 不传值直接跳到另外1个action-->
</action>
<!--
*代表方法名
<action name="user_*" class="userAction" method="{1}">
<result name="registViewSuccess">/WEB-INF/jsp/user_registView.jsp</result>
<result name="registSuccess">/WEB-INF/jsp/user_registSuccess.jsp</result>
用户激活成功后,跳到首页去/或者跳到登陆页面去
跳转分3中,1跳到jsp
2.不传值直接跳到另外1个action (type="redirectAction")
3.把本action的值一起传到另外一个action(type="chian")
<result name="acvitedSuccess" type="redirectAction">index</result>
当无法通过拦截器验证时,拦截器自动返回input,跳回输入页面
<result name="input">/WEB-INF/jsp/user_registView.jsp</result>
</action>
-->
</package>
</struts>