Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing out exceptions

Status
Not open for further replies.

arm207

Programmer
Jun 13, 2006
26
US
if i have

catch (Throwable t) {
...
}

how do I print out the exception?
 
If you mean print it to the user than the standard way will be to create an error page, direct this jsp to it using the errorPage property of the page directive and print it there. If you mean logging it than you could use the log() methods of ServelContext, it will output it to your Servlet Container's default log file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top