tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wyn Easton <wyn_eas...@yahoo.com>
Subject RE: [BUG] OutputStream is already being used for this request
Date Tue, 14 Nov 2000 11:11:05 GMT
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 <jw-kramer@home.com> 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/

Mime
View raw message