<!-- 配置拦截器 -->
        <interceptors>
            <!-- 声明拦截器 -->
            <interceptor name="checkPrivilege"
                class="com.imgive.im.interceptor.CheckPrivilegeInterceptor"></interceptor>
            <!-- 声明拦截器栈 -->
            <interceptor-stack name="myStack">
                <interceptor-ref name="checkPrivilege" />
                <interceptor-ref name="defaultStack" />
            </interceptor-stack>
        </interceptors>

        <!-- 默认本包中的所有action都要经过myStack这个拦截器栈 -->
        <default-interceptor-ref name="myStack"></default-interceptor-ref>

        <global-results>
            <result name="input">/input.jsp</result>
            <result name="loginUI">/WEB-INF/admin/loginLogoutAction/loginUI.jsp</result>
            <result name="privilegeError">/privilegeError.jsp</result>
        </global-results>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2021-12-11
  • 2021-09-22
猜你喜欢
  • 2021-12-16
  • 2021-07-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2022-01-23
  • 2021-08-26
相关资源
相似解决方案