tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Delisle <pierre.deli...@sun.com>
Subject Re: [PATCH] JspParseEventListener.java - Catch Throwable and throw new Exception
Date Sun, 26 Nov 2000 16:18:40 GMT


Rob Saccoccio wrote:
> 
> Would it be possible to change the generated _jspService() method to catch
> Throwable instead of Exception?  JSP 1.2 is taking this direction (excerpt
> and patch below).

Just committed the fix in tomcat-4.0 (since this is JSP1.2).

> +       writer.println("java.lang.reflect.InvocationTargetException ex = new
> java.lang.reflect.InvocationTargetException(t);");
>         writer.println("pageContext.handlePageException(ex);");

FYI, did not do this, since the Throwable is passed directly to 
handleException(Throwable):

          writer.println("pageContext.handlePageException(t);");

Thanks for the patch!

    -- Pierre

Mime
View raw message