标签:http io ar art sp cti log on c
<?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="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>
标签:http io ar art sp cti log on c
原文地址:http://www.cnblogs.com/yuyezhulan/p/3971582.html