This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes error handling in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "error handling in web.xml" Watch "error handling in web.xml" New topic

error handling in web.xml

Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
hi all:
I am trying to add error handling in my web.xml file.
here is the code:
It is not working correctly. It catch Exceptions, but not RuntimeExceptions.
I had to add another code:
RuntimeExeption exteds Exception. Shouldn't be cought without adding the second code.

SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Leandro Oliveira
Ranch Hand

Joined: Nov 07, 2002
Posts: 298
Hi!! I'm using tomcat 5.0 and it works!!
I agree. Here's the link:
subject: error handling in web.xml
Similar Threads
error pages in web.xml
Problem configuring Error Page
pageContext.exception is not executing
exception on console ?
process errors of user defined URL