tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien OIX <julien....@presidence.univ-nantes.fr>
Subject Re: error page customization
Date Wed, 03 Apr 2002 13:25:44 GMT
Gary McGowan a écrit :
> 
> In the web.xml file you can define error pages....
> 
> Example:
> 
> <error-page>
>     <error-code>404</error-code>
>     <location>/missing.jsp</location>
> </error-page>
> 
> And so on....
> 
> You can also define error pages for any exceptions: (again in web.xml)
> 
> Example :
> 
>  <error-page>
> 
> <exception-type>java.lang.ArrayIndexOutOfBoundsException</exception-type>
>         <location>/error.html</location>
>  </error-page>
> 
> Gary


thanks a lot :-)

> ----- Original Message -----
> From: "Julien OIX" <julien.oix@presidence.univ-nantes.fr>
> To: "Tomcat list" <tomcat-user@jakarta.apache.org>
> Sent: Wednesday, April 03, 2002 2:06 PM
> Subject: error page customization
> 
> > hi everyone,
> >
> > I'm using Tomcat4 and Apache (mod_webapp connector) on a Linux RedHat
> > 7.1;
> >
> > If I want to define templates for 404 or 403 errors, where do I have to
> > configure this stuff ?
> >
> > If Apache, with ErrorDocument directives in my virtual host
> >
> > If Tomcat, where can I configure this ? (I'm using the default web.xml
> > for my application)
> >
> > thanks in advance.
> >
> > --
> > Julien OIX
> > Service Informatique de Gestion
> > Tél: 02 40 99 83 65
> > mail: julien.oix@presidence.univ-nantes.fr
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
> >
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

-- 
Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: julien.oix@presidence.univ-nantes.fr

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message