Struct 自定义拦截器配置
<package name="my-stack" extends="struts-default">
<interceptors>
<interceptor name ="auth" class ="com.base.servlet.AuthenInterceptor" />
<interceptor-stack name="myStack">
<interceptor-ref name="auth" />?
? ? ? ? ? ? <interceptor-ref name="params" />
<interceptor-ref name="model-driven" />
<interceptor-ref name="defaultStack" />
</interceptor-stack>
</interceptors>
<default-interceptor-ref name="myStack"></default-interceptor-ref>
<global-results>
<result name="input" type="dispatcher">/boss/login.jsp</result>?
<result name="error" type="dispatcher">/boss/error.jsp</result>
</global-results>
</package>