tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krause Karin <Karin.Kra...@winterthur.ch>
Subject FW: HELP: Want to custom the TOMCAT NOT-FOUND page.
Date Tue, 27 Jan 2004 16:31:30 GMT
Hi maybe this can help 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

You write your own errorReportValveClass to customize Error Pages.


-----Original Message-----
From: Krause Karin 
Sent: Mittwoch, 21. Januar 2004 11:26
To: 'Tomcat Users List'
Subject: RE: HELP: Want to custom the TOMCAT NOT-FOUND page.


Hi,
you can specify custom error pages in the web.xml
file
see the servlet spec

here is an example:

	<error-page>
		<error-code>404</error-code>
		<location>/errorpages/404.html</location>
	</error-page>

Karin


-----Original Message-----
From: Rai Ou [mailto:ourai@veritrans.co.jp]
Sent: Mittwoch, 21. Januar 2004 10:24
To: 'Tomcat Users List'
Subject: HELP: Want to custom the TOMCAT NOT-FOUND page.


Tomcat will give the HTTP 404, 500 (and so on...) Error pages when 
accessed by a wrong URL. 

I want to custom that pages but, it seems that they are hard-coding
in tomcat, any good ideas for doing it ?

Thanks. 
Rai.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message