tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francisco Areas Guimaraes" <far...@larc.usp.br>
Subject Re: http errors
Date Wed, 04 Jul 2001 00:24:54 GMT
it didn´t work...could you please give a "complete" web.xml? and where should I put this file?
in %TOMCAT_HOME%/conf or somewhere else? I´m using tomcat 3.2.2 and win2k, I would like any
help you could provide, because I just started working with tomcat.

thanks,

Francisco
fareas@larc.usp.br
  ----- Original Message ----- 
  From: Hughes, Tim 
  To: 'tomcat-user@jakarta.apache.org' 
  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 
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

    -----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