<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
"http://struts.apache.org/dtds/struts-2.5.dtd">
<struts>
<package name="jiangwenwen" namespace="/" extends="struts-default">
<action name="user_*" class="cn.jiangwenwen.action.UserAction" method="{1}">
<param name="username">username</param>
<!-- 转发至jsp页面 -->
<result type="dispatcher">/success.jsp</result>
<!-- 只能转发至action-->
<result type="chain">/test.action</result>
<!-- 重定向至jsp-->
<result type="redirect">/success.jsp</result>
<!-- 只能重定向至action-->
<result type="redirectAction">/test.action</result>
<allowed-methods>login,register</allowed-methods>
</action>
</package>
</struts>