From tomcat-user-return-30608-apmail-jakarta-tomcat-user-archive=jakarta.apache.org@jakarta.apache.org Wed Apr 11 10:15:12 2001 Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 33372 invoked by uid 500); 11 Apr 2001 10:14:47 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 33289 invoked from network); 11 Apr 2001 10:14:32 -0000 Received: from mercedes.gltrade.fr (194.250.146.2) by h31.sny.collab.net with SMTP; 11 Apr 2001 10:14:32 -0000 Received: from glaieul.dvlpmt.gltrade.fr (unknown [195.110.224.46]) by mercedes.gltrade.fr (Postfix) with ESMTP id 7C18012742 for ; Wed, 11 Apr 2001 12:14:44 +0200 (MET DST) Received: by glaieul.dvlpmt.gltrade.fr (Postfix, from userid 5) id 19B1817A55; Wed, 11 Apr 2001 12:14:32 +0200 (MET DST) Received: from nodnsquery(172.27.3.11) by glaieul.dvlpmt.gltrade.fr via smap (V4.0) id xma012861; Wed, 11 Apr 01 12:13:46 +0200 Message-ID: <3AD42D28.8D169952@gltrade.fr> Date: Wed, 11 Apr 2001 12:08:40 +0200 From: =?iso-8859-1?Q?St=E9phane?= BAUDET X-Mailer: Mozilla 4.75 [fr] (Windows NT 5.0; U) X-Accept-Language: fr MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: Redirecting 404,500, etc. References: <085a01c0bec1$351e7d10$2f0d11ac@hqp2w2kdtpn2> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hello, In your web.xml, you should add the tag. For example: 404 /404.html This is well explain in the Java Servlet Specification , in the Deployment desciptor section. (see www.javasoft.com) Carlos Pita a écrit : > > Hi! > I have a simple question: is there a configuration directive that says > Tomcat to redirect 404, 500, etc error codes to a customized output page > (like the Apache's ErrorDocument directive). I'm using Tomcat 3.2.1 with > Apache 1.3.12, and although I could sucesfully configure Apache to do this, > requests which pass through to Tomcat don't have the desired behaviour. > > Thank you in advance, > Carlos -- Cordialement, Stéphane BAUDET _________________________________________________________ GL Trade 48, rue Notre Dame des Victoires - 75002 Paris Tel : 01 53 40 43 12 (interne 1312) Fax : 01 53 40 01 40 Email : sbaudet@gltrade.fr _________________________________________________________