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!

trapping runtime errors

Status
Not open for further replies.

jemminger

Programmer
Jun 25, 2001
3,453
US
hi all,

we're stuck with jsp 1.1?, so we can't use 2.0's pageContext.errorData :-(

is there any way to trap runtime errors and send to a custom error.jsp so i can log the error?

i've set up an error page in web.xml like so:
Code:
<error-page>
  <exception-type>java.lang.Throwable</exception-type>
  <location>error/rterror.jsp</location>
</error-page>

i'd like for rterror.jsp to be able to receive whatever error object was thrown...is this possible?

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top