tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hughes, Tim" <tim.hug...@cgey.com>
Subject RE: http errors
Date Tue, 03 Jul 2001 07:29:59 GMT
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 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

-----Original Message-----
From: Francisco Areas Guimaraes [mailto:fareas@larc.usp.br]
Sent: 3. juli 2001 02:15
To: Lista tomcat User
Subject: http errors


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.

Mime
View raw message