I know that out is an implicit object in a JSP.
I did set the contenttype to image/jpeg or similar, but what I track the
issue to is that JSP does not like grabbing the output stream twice. I have
already
written the servlet and get no problem, it just too bad to need to do this
just for three
line of code to dump the binary data.
By the way, some JSP FAQ use this method for dumping binary data, they
should not!
Also, for not even with the errors and stack traces, it does work, but it
may not in the
future or with other JSP servers.
Jim K.
-----Original Message-----
From: Wyn Easton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2000 6:11 AM
To: [EMAIL PROTECTED]
Subject: RE: [BUG] OutputStream is already being used for this request
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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]]
> Sent: Sunday, November 12, 2000 11:06 PM
> To: [EMAIL PROTECTED]
> 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
[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/