Re: Programmatic access to error 500 stack trace

2006-03-15 Thread Len Popp
Yes, you can do that. 1. Make sure your web.xml has an error-page declaration for exception-type java.lang.Throwable. (Throwable catches things like OutOfMemoryError, as well as Exception and its subclasses.) 2. In your error handling page the exception is available as a request attribute, either

Re: Programmatic access to error 500 stack trace

2006-03-15 Thread Andrew Stepanenko
Hello Eduard, thank you for your answer. But I actually asked about run-time exceptions, like OutOfMemoryError. Do you think this approach will go for them too? Andrew. Eduard Wirch wrote: Use this: } catch (Exception e) { java.io.StringWriter stackTrace = new java.io.StringWriter();