Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 26692 invoked from network); 28 Nov 2007 15:02:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Nov 2007 15:02:38 -0000 Received: (qmail 35977 invoked by uid 500); 28 Nov 2007 15:02:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 35955 invoked by uid 500); 28 Nov 2007 15:02:13 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 35944 invoked by uid 99); 28 Nov 2007 15:02:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2007 07:02:13 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mgainty@hotmail.com designates 65.54.246.88 as permitted sender) Received: from [65.54.246.88] (HELO bay0-omc1-s16.bay0.hotmail.com) (65.54.246.88) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2007 15:01:51 +0000 Received: from hotmail.com ([65.54.162.82]) by bay0-omc1-s16.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 Nov 2007 07:01:54 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 28 Nov 2007 07:01:51 -0800 Message-ID: Received: from 24.63.239.98 by BAY108-DAV10.phx.gbl with DAV; Wed, 28 Nov 2007 15:01:47 +0000 X-Originating-IP: [24.63.239.98] X-Originating-Email: [mgainty@hotmail.com] X-Sender: mgainty@hotmail.com From: "Martin Gainty" To: "Tomcat Users List" References: Subject: Re: Including in a JSP the result of a servlet that forwards Date: Wed, 28 Nov 2007 09:57:53 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-OriginalArrivalTime: 28 Nov 2007 15:01:51.0017 (UTC) FILETIME=[9B193190:01C831CF] X-Virus-Checked: Checked by ClamAV on apache.org Hi Antonio- https://java.sun.com/products/servlet/2.1/api/javax.servlet.RequestDispatche r.html#forward(javax.servlet.ServletRequest,%20javax.servlet.ServletResponse ) where the most relevant part is "This method may not be used if the calling servlet has already output any response to the client." decide which servlet is constructing the response and forward to that servlet Anyone? Martin-- ----- Original Message ----- From: "Antonio Petrelli" To: Sent: Wednesday, November 28, 2007 6:41 AM Subject: Including in a JSP the result of a servlet that forwards > Hi all, > If I make a (in fact I am using Tiles, but the result is > the same) of a result of a servlet which, in turn, makes an > ApplicationDispatcher.forward, I have a strange effect: > - only the page forwarded by the servlet will be visible to the user; > - the rest of the JSP page is executed, but it gives a "Stream closed" error. > I tested on Tomcat 5.5.25 and Jetty 6.1.1rc1 (embedded in Cargo, Maven > 2 plugin), that (correct me if I am wrong) shares the Jasper engine > with Tomcat. > Independently from the fact if it is a good or a bad idea to forward > into a servlet that is included, is this the normal behaviour or is it > a bug? > > Thanks in advance > Antonio > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org