You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark Haroldson <ma...@msn.com> on 2014/08/19 22:05:19 UTC

Custom error page for all errors

Is there a way to route all errors to a single web page?

 

 

Something like:

 

<error-page>

<error-code>all</error-code>

<location>myerror.jsp</location>

</error-page>

 

 

Basically I want to control the content of everything that goes out of my
service.

 

Thanks

Mark


Re: Custom error page for all errors

Posted by Mark Thomas <ma...@apache.org>.
On 19/08/2014 21:05, Mark Haroldson wrote:
> Is there a way to route all errors to a single web page?

Leave out the error-code tag and you define the default error page.

That will work in Tomcat 8 and I think in 7 as well.

Mark


> 
>  
> 
>  
> 
> Something like:
> 
>  
> 
> <error-page>
> 
> <error-code>all</error-code>
> 
> <location>myerror.jsp</location>
> 
> </error-page>
> 
>  
> 
>  
> 
> Basically I want to control the content of everything that goes out of my
> service.
> 
>  
> 
> Thanks
> 
> Mark
> 
> 


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