aspose file tools*
The moose likes Servlets and the fly likes How to handle runtime ServletException? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to handle runtime ServletException?" Watch "How to handle runtime ServletException?" New topic
Author

How to handle runtime ServletException?

yoginee Pathak
Greenhorn

Joined: Apr 25, 2001
Posts: 3
Hi all,
Could anybody help me by telling how to handle runtime SevletException?
Thank you
Yoginee
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12781
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to handle runtime ServletException?