Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic