This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "servlet as error-page" Watch "servlet as error-page" New topic
Author

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
 
Similar Threads
Strange Problem with servlet output
servlet-jdbc - internal servlet error (error:500)
jdbc
Why is the servlet not available?
login in to a mysql database