Create your own 404 error page and add it to your web.xml.
<error-page>
<error-code>404</error-code>
<location>/error/404.jsp</location>
</error-page>
−
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/error/500.jsp</location>
</error-page>
−
<error-page>
<error-code>500</error-code>
<location>/error/500.jsp</location>
</error-page>

--Angus Mezick

-----Original Message-----
From: Raghavendra Datt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2008 2:33 PM
To: users@tomcat.apache.org
Subject: Default error page generation logic in tomcat

Hi Guys,
  I had a specific requirement related to tomcat error generation. When a
default error page is generated like 404 error page, tomcat appends its
version info at the bottom of the page. I don't want this version to be
displayed on the error page. I am trying to understand which part of the
tomcat code actually does this?

Any response will be appreciated.

Thanks,
Raghu

Reply via email to