zoukankan      html  css  js  c++  java
  • 拦截器

    拦截器

    <?xml version="1.0" encoding="UTF-8" ?>
    
    <!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
        "http://struts.apache.org/dtds/struts-2.3.dtd">
    
    <struts>
       <package name="abstract_struts" abstract="true"  extends="struts-default" namespace="/">
               <interceptors>
                   <interceptor-stack name="myStack">
                       <interceptor-ref name="defaultStack"></interceptor-ref>
                       <interceptor-ref name="authority"></interceptor-ref>
                   </interceptor-stack>
                   <interceptor name="authority" class="com.seecen.interceptor.LoginInterceptor"></interceptor>              
               </interceptors>
               <default-interceptor-ref name="myStack"></default-interceptor-ref>
               <!-- 定义全局Result -->
               <global-results>
                   <!-- 当返回login视图名时,转入/login.jsp页面 -->
                   <result name="login" type="redirect">/login.jsp</result>
               </global-results>
       </package>
    <!-- 
        <package name="user" namespace="/user" extends="abstract_struts">
            <action name="userAction" method="execute" class="com.seecen.action.UserAction">
                <result name="success">/index.jsp</result>
                   <result name="input">/fail.jsp</result>
            </action>
        </package>     -->
    </struts>
  • 相关阅读:
    使用KNN算法手写体识别
    os内置模块
    python步长为负时的情况
    qplot()函数的详细用法
    python文件I/O
    python中 @property
    python中定制类
    python中多重继承与获取对象
    python继承,判断类型,多态
    python中访问限制
  • 原文地址:https://www.cnblogs.com/cfb513142804/p/4241710.html
Copyright © 2011-2022 走看看