webwork不是有一个exception拦截器么
<interceptor name="exception" class="com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor" />

解决方案 »

  1.   

    ww2.2.2已经没有这个类了。OK,如果我用旧版本的ww,那拦截以后,怎么得到被拦的Exception呢?
      

  2.   

    这个行不行?
    public interface HandlerExceptionResolverInterface to be implemented by objects than can resolve exceptions thrown during handler mapping or execution, in the typical case to error views. Implementors are typically registered as beans in the application context. Error views are analogous to the error page JSPs, but can be used with any kind of exception including any checked exception, with potentially fine-granular mappings for specific handlers. 
    或者用
    ThrowsAdvice + BeanNameAutoProxyCreator