strut2提供了类似于filter的拦截器(interceptor)
在struts2中拦截器作用于action上,当请求Client发送一个action时,首先要经过拦截器.
拦截器是在struts.xml中配置的其几个常用的标签为
<interceptors>
<interceptor name="" class=""></interceptor>
<interceptor-stack name="">
<interceptor-ref name=""></interceptor-ref>
</interceptor-stack>
</interceptors>
<default-interceptor-ref name=""></default-interceptor-ref>
<action name="" class="">
<result name="" type=""></result>
<interceptor-ref name="">
<param name=""></param>
</interceptor-ref>
</action>