Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 43848 invoked from network); 14 Nov 2000 11:11:05 -0000 Received: from web1305.mail.yahoo.com (128.11.23.155) by locus.apache.org with SMTP; 14 Nov 2000 11:11:05 -0000 Received: (qmail 9365 invoked by uid 60001); 14 Nov 2000 11:11:05 -0000 Message-ID: <20001114111105.9364.qmail@web1305.mail.yahoo.com> Received: from [32.101.162.56] by web1305.mail.yahoo.com; Tue, 14 Nov 2000 03:11:05 PST Date: Tue, 14 Nov 2000 03:11:05 -0800 (PST) From: Wyn Easton Subject: RE: [BUG] OutputStream is already being used for this request To: tomcat-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Maybe you already knew this, but "out" is an implicit object in a JSP. You probably need a response.setContentType() or the page directive that doe the same thing to set your output stream for binary data. --- kramer wrote: > I am getting this while using request.getOutputStream() to write > binary data > is a JSP. > I did some more hunting and it looks like this is not allowed, and > should be > done only in a servlet. > I is a shame, because it was only three lines of code and to go > through all > the servlet sets just for just three > lines of code. > > Jim K > > -----Original Message----- > From: Craig R. McClanahan [mailto:Craig.McClanahan@eng.sun.com] > Sent: Sunday, November 12, 2000 11:06 PM > To: tomcat-user@jakarta.apache.org > Subject: Re: [BUG] OutputStream is already being used for this > request > > > kramer wrote: > > > I am still getting the error message "OutputStream is already being > used > for > > this request" even with 3.2 beta 7. > > > > Does any one know if this should be fix prior to finial 3.2? > > Under what circumstances are you getting this message? There are > valid > cases of > getting this that are required by the servlet 2.2 specification -- > but > without > knowing what your scenario is, nobody can tell if this is a feature > or a bug > :-). > > Craig McClanahan > > > ===== Wyn Easton wyn_easton@yahoo.com __________________________________________________ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/