Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 60076 invoked from network); 21 Jan 2006 08:40:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jan 2006 08:40:45 -0000 Received: (qmail 8108 invoked by uid 500); 21 Jan 2006 08:40:41 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 8048 invoked by uid 500); 21 Jan 2006 08:40:40 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 8037 invoked by uid 99); 21 Jan 2006 08:40:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2006 00:40:40 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jak-tomcat-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2006 00:40:39 -0800 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F0EIA-0001SX-P8 for dev@tomcat.apache.org; Sat, 21 Jan 2006 09:40:14 +0100 Received: from pool-71-104-89-146.lsanca.dsl-w.verizon.net ([71.104.89.146]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jan 2006 09:40:14 +0100 Received: from wbarker by pool-71-104-89-146.lsanca.dsl-w.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jan 2006 09:40:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@tomcat.apache.org From: "Bill Barker" Subject: Re: [Fwd: Re: Response not flushed before RD.forward() returns] Date: Sat, 21 Jan 2006 00:40:52 -0800 Lines: 39 Message-ID: References: <43D0CD40.6040901@apache.org> <43D17F68.4000506@sun.com> <43D1E86C.4030807@apache.org> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pool-71-104-89-146.lsanca.dsl-w.verizon.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N "Remy Maucherat" wrote in message news:43D1E86C.4030807@apache.org... > Jan Luehe wrote: >> Right, but flush does nothing once the response has been suspended. >> >> In addition, consider the case where a request has been >> forward-dispatched into a foreign context. If the target >> servlet in the foreign context has set a status code on the response, >> and the response is being suspended before returning from the >> RD.forward(), the status code will be mapped to an error page >> using the mappings of the *origin* context as the response >> travels through the origin context's pipeline (and error valve) >> on the way out. >> >> The origin and target contexts may map the same status code to >> different error pages, or the origin context may not even contain any >> mapping for the given status code. In any case, I would find it >> confusing for the origin context's mappings to be used, since >> a RD.forward() is supposed to transfer control to the target. >> >> I think it is cleaner for the response to be committed before >> returning from RD.forward(), at the cost of not being mapped >> to any error page. This is better than mapping the response to >> a wrong error page. Or we could suspend the response when the >> origin and target servlets share the same context, and commit it >> when they reside in different contexts? Clearly, this would require >> a spec clarification. > > -1 > Yeah, it's pretty much a fatal flaw in the Catalina design. It's currently impossible for Catalina to satisfy both the requirements for error-pages and forwards. > R�my --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org