<action name="userlogin" class="UserLoginAction" method="userlogin"> <result name="success" type="redirect-action"> <param name="actionName">login</param> <param name="namespace">/</param> </result> <result name="error">/login.jsp</result> </action>
上面是支持struts2.0.X的配置
<action name="userlogin" class="UserLoginAction" method="userlogin"> <result name="success" type="redirectAction"> <param name="actionName">login</param> <param name="namespace">/</param> </result> <result name="error">/login.jsp</result> </action>
上面是支持struts2.1.X的配置