在webwork文檔中對攔截包含或排除的方法有如下說(shuō)明:
抽象的攔截器可以通過(guò)指定included/excluded方法列表來(lái)實(shí)現可選擇性
可以設置的參數如下:
它的示例用法:
<interceptor-ref name="validation"><param name="excludeMethods">myValidationExcudeMethod</param></interceptor-ref>
其中值得注意的是,如果要使用此機制,攔截器的實(shí)現必須繼承 MethodFilterInterceptor 而不是實(shí)現 Interceptor 接口,參見(jiàn) com.opensymphony.xwork.validator.ValidationInterceptor。
聯(lián)系客服