<action name="login_*" class="nsu.edu.cn.LoginAction" method="{1}">
<interceptor-ref name="editor">
<param name="includeMethods">editor</param>
</interceptor-ref>
</action>
<interceptor-ref name="editor">
<param name="includeMethods">editor</param>
</interceptor-ref>editor</param>
只对执行action方法名为editor的action执行名为editor的拦截器
<interceptor-ref name="editor">
<param name="excludeMethods">editor</param>
</interceptor-ref>editor</param>
对执行action方法名为editor的action,该拦截器不执行
注:方法过滤配置要起作用,拦截器需要继承MethodFilterInterceptor类。MethodFilterInterceptor类是AbstractInterceptor的子类。