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. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
- http errors Francisco Areas Guimaraes
- Re: http errors Dmitri Colebatch
- Re: http errors Hughes, Tim
- Re: http errors Francisco Areas Guimaraes
- RE: http errors Hughes, Tim
- Re: http errors Francisco Areas Guimaraes