aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes servlet as error-page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "servlet as error-page" Watch "servlet as error-page" New topic

servlet as error-page

Peter van de Riet
Ranch Hand

Joined: Apr 09, 2004
Posts: 112

I have tried to create a error-page servlet and I can't get it working properly.
This is my doGet() method:

And this is a part of my web.xml file:

When an SQL-error occurs, it seems like Tomcat can't find the servlet. The message in the log-file is:

When I remove the error-page tag then a standard error-page (including the nested SQLException) is shown.

Each number system has exactly 10 different digits.
Have you tried LearnNowOnline?
subject: servlet as error-page