Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 65947 invoked from network); 7 Jan 2003 00:03:18 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 7 Jan 2003 00:03:18 -0000 Received: (qmail 9966 invoked by uid 97); 7 Jan 2003 00:04:35 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 9950 invoked by uid 97); 7 Jan 2003 00:04:35 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 9938 invoked by uid 98); 7 Jan 2003 00:04:34 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3E1A1940.8070507@joedog.org> Date: Mon, 06 Jan 2003 19:03:12 -0500 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: [PATCH] forward instead of redirect for welcome files References: <1041638607.21193.47.camel@localhost.localdomain> <3E19D583.5030806@gefionsoftware.com> <1041881792.21193.116.camel@localhost.localdomain> <3E19F89A.4000500@gefionsoftware.com> <1041891830.21188.154.camel@localhost.localdomain> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N If a trailing / is not present, then performing a RequestDispatcher.forward will break all relative references (for the web browser) -Tim Costin Manolache wrote: > Matt Parker wrote: > > >>On Mon, 2003-01-06 at 14:43, Hans Bergsten wrote: >> >>>Okay, that's different. Maybe I misread your patch, but to me it looked >>>as if you changed the behavior when there's no trailing slash. >> >>Actually my patch is forwarding under both circumstances, but according >>to SRV.9.10 of Servlet 2.4, this is actually correct (phew! :) > > > Forwarding if there is no ending "/" doesn't seem right. I'm very sure > anchors will be broken. > > It may be a good idea to include a modified patch that makes this optional - > but IMO redirect should remain the default. But please verify that anchors > work, including cases where the welcome file is in another directory. > > > > Costin > > -- To unsubscribe, e-mail: For additional commands, e-mail: