struts2.1.X关于配置redirect-action启动出错的解决方法

<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的配置

你可能感兴趣的:(jsp)