How do I create custom error pages in Tomcat? You create the error page first and then link to it in your web.xml file for your context. For instance: error_401.jsp inside your root web directory. <error-page> <error-code>401</error-code> <location>/error_401.jsp</location> </error-page> inside web.xml |