tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Singleton <p...@jbgb.com>
Subject replacing the error page(s)
Date Mon, 07 Nov 2005 12:31:43 GMT
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


Mime
View raw message