Return-Path: Delivered-To: apmail-beehive-user-archive@www.apache.org Received: (qmail 55248 invoked from network); 10 May 2007 16:17:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 May 2007 16:17:38 -0000 Received: (qmail 18364 invoked by uid 500); 10 May 2007 16:17:43 -0000 Delivered-To: apmail-beehive-user-archive@beehive.apache.org Received: (qmail 18347 invoked by uid 500); 10 May 2007 16:17:43 -0000 Mailing-List: contact user-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Users" Delivered-To: mailing list user@beehive.apache.org Received: (qmail 18336 invoked by uid 99); 10 May 2007 16:17:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 09:17:43 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of BBurgess@tiaa-cref.org designates 143.165.8.33 as permitted sender) Received: from [143.165.8.33] (HELO nc89acb01isea01.tiaa-cref.org) (143.165.8.33) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 09:17:35 -0700 X-PX: TRUE X-IronPort-AV: i="4.14,518,1170633600"; d="scan'208,217"; a="2345024:sNHT51952032" Received: from NC89ACB01ISEA01.ops.tiaa-cref.org ([10.165.8.33]) by localhost (PostX Enterprise 6.2.3 SMTP Adapter) with SMTP ID 164 for ; Thu, 10 May 2007 16:17:10 +0000 (GMT) X-IronPort-AV: i="4.14,518,1170633600"; d="scan'208,217"; a="2345019:sNHT53335518" X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7931E.A12C316B" Subject: Stream a fiile from an action Date: Thu, 10 May 2007 12:16:56 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Stream a fiile from an action Thread-Index: AceTHqDXBpTr73iuTbqIRXtRwnWT0Q== From: "Burgess, Benjamin" To: X-OriginalArrivalTime: 10 May 2007 16:16:57.0222 (UTC) FILETIME=[A1900260:01C7931E] X-PostX-Message-ID: 9cfc1c000196c776415268269106c37a@nc89acb01eess01 X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C7931E.A12C316B Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable What is the correct way to stream a file from a Beehive action? =20 What I have tried is to use (which doesn't work) is to declare an action method that doesn't have any forwards: getResponse().setContentType("application/zip"); getResponse().setHeader("Content-Disposition", "attachment;filename=3Dtest.zip"); getResponse().getOutputStream().write(bytes); return null; =20 However, the content type header never gets updated; it always comes to the browser as text/html. I assume this has something to do with Scoped Responses. Also, the actual content being returned to the browser starts with the bytes for the zip file, but then has the JSP from which the request initiated concatenated to the end of it. Doesn't a null forward mean to stop the response right there? =20 I am using BEA Weblogic Portal 9.2 with out of the box Beehive. =20 Ben ****************************************** This message, including any attachments, contains confidential information = intended for a specific individual and purpose, and is protected by law. I= f you are not the intended recipient, please contact sender immediately by = reply e-mail and destroy all copies. You are hereby notified that any disc= losure, copying, or distribution of this message, or the taking of any acti= on based on it, is strictly prohibited. TIAA-CREF ****************************************** ------_=_NextPart_001_01C7931E.A12C316B--