2013年12月10日星期二

struts.xml configure an interceptor and include multiple configuration files , visit include the Action, the interceptor does not work

rt, which is what causes it ?

<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>

------ Solution ------------------------------------- -------
include inside the package inherit this package to try
------ For reference only ------------------ ---------------------
  The reply was deleted administrator at 2013-12-11 08:40:39

------ For reference only ---------------------------------- -----


ah , you can use , thank

没有评论:

发表评论