tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: how to get meaningful exception in JSP error page
Date Fri, 03 Jan 2003 06:51:19 GMT
As it happens, JasperException (at least in 4.1 Jasper2) subclasses
ServletException.  You should be able to get this by casting to a
ServletException and calling getRootCause().

"Brian W. Young" <byoung@decadesystems.com> wrote in message
news:3E1455DA.8070000@decadesystems.com...
> Happy New Year,
>
> I'm using the errorPage="my_own_error.jsp" technique.
>
> However, the "exception" object in my_own_error.jsp gives me the only
> the Jasper stack trace.  It doesn't include info on what part of my own
> code bombed.  I've tried getCause() on exception but it isn't yielding
much.
>
> I basically want the bottom most part of the trace that tomcat shows on
> its own interal error page (the one you get before you use the errorPage
> directive)
>
> Thanks for your pointers.





--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message