+1

2016-08-03 9:32 GMT+02:00 Greg Huber <gregh3...@gmail.com>:
> Would it be possible to modify the ConversionErrorInterceptor to extend
> MethodFilterInterceptor so I can exclude the validation on certain methods?
>
> ie
>
> <interceptor-ref name="conversionError">
>   <param name="excludeMethods">cancel*</param>
> </interceptor-ref>
>
> It seems always to be called (needs to be like the validator/workflow)
>
> I have noticed that if I there is a conversion error on a screen and I
> return with a redirectAction (and the action has a STORE and the
> destination action has a RETRIEVE) the conversion error shows on the
> destination action screen.
>
> The changes are to  extend MethodFilterInterceptor and change
>
> public String intercept(ActionInvocation invocation) throws Exception {
>
> to
>
> protected String doIntercept(ActionInvocation invocation) throws Exception {
>
> Cheers Greg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to