tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Birch <cpbi...@mac.com>
Subject Re: Custom error page when ...
Date Sat, 22 Oct 2005 10:59:32 GMT
You can add pages for HTTP response codes to you web.xml file for each 
web application you deploy within Tomcat.

Add the following to your web.xml file after <welcome-file-list> and 
before <taglib> declarations:

	<error-page>
		<error-code>404</error-code>
		<location>/pages/error.jsp</location>
	</error-page>

Regards,
Chris.

On 22 Oct 2005, at 10:12, Roberto Bottoni - AfterBit wrote:

> Hi,
> I would like to replace a custom error page when i get a : HTTP Status 
> 404
> .. The requested resource (/..) is not available with Tomcat 5.
> How I make this ?
> Thanks.
>
> Roberto.


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


Mime
View raw message