----- Original Message -----
Sent: Tuesday, July 03, 2001 4:29
AM
Subject: RE: http errors
Hi,
Using
<error-page> elements in the web.xml, you can program web applications
to handle HTTP errors and exceptions.
The deployment
description below makes the container send the /errors/TryAgain.html file if
either a TryAgainExeption or the HttpServletResponse.SC_SERVER_UNAVAILABLE
error code occurs:
<web-app>
<!-- Servlet
definitions -->
<error-page>
<exception-type>javax.servlet.TryagainException</exception-type>
<location>/errors/TryAgain.html</location>
</error-page>
<error-page>
<error-code>503</error-code>
<location>/errors/TryAgain.html</location>
</error-page>
I hope this helps.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tim Hughes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Anyone know if I can set tomcat to use a custom
page for http errors, like 500, instead of it�s default???
please, help me, i�ve tried a lot of things and
it didn�t help.
[]�s
Francisco
This message contains information that may be privileged or
confidential and is the property of the Cap Gemini Ernst & Young Group. It
is intended only for the person to whom it is addressed. If you are not the
intended recipient, you are not authorized to read, print, retain, copy,
disseminate, distribute, or use this message or any part thereof. If you
receive this message in error, please notify the sender immediately and delete
all copies of this message.