Re: Custom error page with stacktrace

2008-08-24 Thread Kees Jan Koster
Dear All, In your error page, the variable "exception" is set to the exception (if any). You can get the error message and stack trace from the exception like this: Exception message: <%= (exception == null) ? "" : exception.getMessage() %> <% String stStack = ""; if (exception != null) {

Re: Custom error page with stacktrace

2008-08-20 Thread Len Popp
In your error page, the variable "exception" is set to the exception (if any). You can get the error message and stack trace from the exception like this: Exception message: <%= (exception == null) ? "" : exception.getMessage() %> <% String stStack = ""; if (exception != null) { java.io.St

Custom error page with stacktrace

2008-08-20 Thread Tom van Wietmarschen
L.S, I'm running tomcat to serve out XML to a custom client (not a webbrowser). In order to show an error page that this client can actually display I use custom error pages in Tomcat. For this I have specified a JSP as an error page, this works very well. However, during the test phase of ou