You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paul Singleton <pa...@jbgb.com> on 2005/11/07 13:31:43 UTC

replacing the error page(s)

If I want to ensure that Tomcat's built-in error page
(5.5.9+) is never used (and provide a custom replacement)
(for all apps in a server), is there a better way than
putting this sort of stuff in conf/web.xml?

  <error-page>
    <error-code>404</error-code>
    <location>/some/error/page.jsp</location>
  </error-page>

  <error-page>
    <exception-type>java.io.IOException</exception-type>
    <location>/some/error/page.jsp</location>
  </error-page>

and what error codes must I do this for?  Is there a
compact way of specifying *all* codes?

Is it a bad idea to define a page for java.lang.Throwable?

Paul Singleton


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.362 / Virus Database: 267.12.8/162 - Release Date: 5/Nov/2005


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org