The most important thing is to get the maximum amount of informaton from the exception. Your
servlet engine is probably going to log the stack trace, so be sure to preserve the error log.
Note that ServletException can be thrown with a "root cause" Throwable attached - if you are catching ServletException, use getRootCause() and print the stack trace of that Throwable.
Bill