This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hi, I am trying to get my servlet's exception forwarded to error page defined in the web.xml. In web.xml I have, <error-page> <exception-type>javax.servlet.ServletException</exception-type> <location>/errorPage1.jsp</location> </error-page> And in my servlet, I am throwing ServletException. As per the Servlet 2.3 specs, the exception should be forwarded to the error page. The errorPage1.jsp has the following directive - <%@ page language="java" isErrorPage="true" %> But, when my servlet throws error, I just see a "Page Not Found" on my browser. In the tomcat cache, I see the erroPage1.jsp converted into a servlet and compiled. This means that it is being requested, but the browser, instead of showing the contents of the errorPage1.jsp, just shows "Page Not Found" Is there something I missed ?