输入正确的登录信息也被拦截了,求解
登录页面也被拦截了。
<package name="default" namespace="/" extends="struts-default">
<!--注册拦截器,实现用户登录才能访问 -->
<interceptors>
<interceptor name="loginauth" class="interceptor.LoginInterceptor"></interceptor>
<!--自定义拦截器栈myStack,组合了defaultStack和loginauth -->
<interceptor-stack name="myStack">
<interceptor-ref name="defaultStack"></interceptor-ref>
<interceptor-ref name="loginauth">
<param name="includeMethods">/users/login_success.jsp</param>
</interceptor-ref>
</interceptor-stack>
</interceptors>
</package>
<!--配置用户动作 -->
<package name="users" namespace="/users" extends="default">
<action name="*_*" class="action.{1}Action" method="{2}">
<result name="login_success">/users/login_success.jsp</result>
<interceptor-ref name="myStack"></interceptor-ref>
<result name="login_failure">/users/login.jsp</result>
<result name="logout_success">/users/login.jsp</result>
<result name="input">/users/login.jsp</result><!-- 进行输入验证出错跳转页面 -->
<result name="reg_success">/users/reg_success.jsp</result>
<result name="reg_failure">/users/reg_failure.jsp</result>
</action>
</package>