Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: how to get rid of error message? config file?

Edoardo Panfili

2006-11-28

Replies:

John john ha scritto:
> Hi,
>
> When there is a problem in my jsp file, Tomcat displays an
> Etat HTTP 500 -
> with the exception that caused the problem. Is there a way to avoid this message and display my own message like " We're sorry but we're facing a problem, please contact me at ..."
>

You can use

  <error-page>
     <error-code>403</error-code>
     <location>your_page_name.jsp</location>
  </error-page>

in you web.xml

see http://edocs.bea.com/wls/docs61/webapp/web_xml.html

Edoardo


--
edoardo@(protected)
AIM: edoardopn
Jabber: edoardopa@(protected)
tel:075 9142766

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.