struts.xml中配置了一个拦截器并include 多个配置文件,访问include的Action,拦截器不起作用
rt,这是什么原因呢?
<include file="config/struts_role.xml" />
<include file="config/struts_dept.xml" />
<include file="config/struts_user.xml" />
<include file="config/struts_home.xml" />
<package name="default" extends="struts-default">
<interceptors>
<interceptor name="checkPrivilege" class="com.cbj.oa.interceptor.CheckPrivilegeInterceptor"></interceptor>
<interceptor-stack name="defaultStack">
<interceptor-ref name="checkPrivilege" />
<interceptor-ref name="defaultStack" />
</interceptor-stack>
</interceptors>
</package>