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
----- Original Message -----
From: "Julien OIX" <[EMAIL PROTECTED]>
To: "Tomcat list" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to