日期:2014-05-17 浏览次数:20754 次
<package name="myPage" namespace="/test" extends="struts-default"> <interceptors> <interceptor name="permission" class="cn.xn.interceptor.PermissionInterceptor"/> <interceptor-stack name="permissionStack" > [color=#FF0000]//在此处提示错误:The content of element type "interceptor-stack" must match "(interceptor-ref)*".[/color] <intercoptor-ref name="defaultStack"/> <interceptor-ref name="permission" /> </interceptor-stack> </interceptors> ...... ...... ...... <!-- 自定义拦截器 --> <action name="myfilter_*" class="com.xn.MyFilterAction" method="{1}"> <result>/WEB-INF/page/filterMessage.jsp</result> <interceptor-ref name="permissionStack"/> </action> </package>