首页 > 代码库 > Jsp struts 标准配置测试版

Jsp struts 标准配置测试版

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<constant name="struts.multipart.maxSize" value="http://www.mamicode.com/1000000000" />
<include file="com/spring/action/domain.xml" />
<package name=" "  extends="struts-default.xml">
 <interceptors>
            <!-- 自定义拦截器 -->
            <interceptor name="permission" class="com.gcflower.filter.SessionInterceptor" />
            <!-- 配制默许的拦截器到拦截器栈 -->
            <interceptor-stack name="mydefault">
                <!-- 此处先后顺序没影响-->
                <interceptor-ref name="permission" />
                <interceptor-ref name="defaultStack" />
            </interceptor-stack>
            
        </interceptors>
        <!-- 配置默认的拦截器 -->
        <default-interceptor-ref name="mydefault" />
        <!-- 全局变量,超时返回登录页面 -->
        <global-results>
            <result name="login">/login.jsp</result>
        </global-results>
</package>
</struts>

Jsp struts 标准配置测试版