wood burning stoves
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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.
I agree. Here's the link: http://aspose.com/file-tools
subject: servlet as error-page
It's not a secret anymore!