This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
Hi all, Could anybody help me by telling how to handle runtime SevletException? Thank you Yoginee
Author and all-around good cowpoke
posted 15 years ago
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