Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 14136 invoked from network); 28 Jan 2009 15:14:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jan 2009 15:14:05 -0000 Received: (qmail 29694 invoked by uid 500); 28 Jan 2009 15:13:52 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 29664 invoked by uid 500); 28 Jan 2009 15:13:52 -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 29653 invoked by uid 99); 28 Jan 2009 15:13:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jan 2009 07:13:51 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.61.61.104] (HELO usea-naimss2.unisys.com) (192.61.61.104) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jan 2009 15:13:42 +0000 Received: from usea-nagw1.na.uis.unisys.com ([129.224.72.16]) by usea-naimss2 with InterScan Message Security Suite; Wed, 28 Jan 2009 09:09:43 -0600 Received: from usea-nagw1.na.uis.unisys.com ([129.224.72.51]) by usea-nagw1.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 Jan 2009 09:09:43 -0600 Received: from usea-nahubcas1.na.uis.unisys.com ([129.224.76.114]) by usea-nagw1.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 Jan 2009 09:09:43 -0600 Received: from USEA-EXCH7.na.uis.unisys.com ([129.224.76.38]) by usea-nahubcas1.na.uis.unisys.com ([129.224.76.114]) with mapi; Wed, 28 Jan 2009 09:09:42 -0600 From: "Caldarale, Charles R" To: Tomcat Users List Date: Wed, 28 Jan 2009 09:09:40 -0600 Subject: RE: Servlet 2.5 and RequestDispatcher.include + Response.setHeader, invalid? Thread-Topic: Servlet 2.5 and RequestDispatcher.include + Response.setHeader, invalid? Thread-Index: AcmBChqv60SVW+74RoW+jP1X5kfbzQAT8v7g Message-ID: <0AAE5AB84B013E45A7B61CB66943C17215B5C8998C@USEA-EXCH7.na.uis.unisys.com> References: <497FEE3F.4090103@kensystem.com> In-Reply-To: <497FEE3F.4090103@kensystem.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 28 Jan 2009 15:09:43.0080 (UTC) FILETIME=[72DB8A80:01C9815A] X-Virus-Checked: Checked by ClamAV on apache.org > From: Ken Johanson [mailto:tomcat-user@kensystem.com] > Subject: Servlet 2.5 and RequestDispatcher.include + > Response.setHeader, invalid? > > It's my understanding that servlet 2.5 loosened the requirement that a > included/callee Servlet (and JSP?) cannot set the resp headers/status, > and should now be able to set them if not already committed. Why do you think your "understanding" would override an explicit statement = in the spec? Here's the exact text from SRV.8.3 of the servlet spec versio= n 2.5mr6: "It cannot set headers or call any method that affects the headers of the r= esponse, with the exception of the HttpServletRequest.getSession() and Http= ServletRequest.getSession(boolean) methods. Any attempt to set the headers = must be ignored, and any call to HttpServletRequest.getSession() or HttpSer= vletRequest.getSession(boolean) that would require adding a Cookie response= header must throw an IllegalStateException if the response has been commit= ted." - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MA= TERIAL and is thus for use only by the intended recipient. If you received = this in error, please contact the sender and delete the e-mail and its atta= chments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org