Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

servlet as error-page

 
Peter van de Riet
Ranch Hand
Posts: 112
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!