-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
I'm still having problems getting my out.print() calls to show up in
the browser, which instead says "document contained no data", after
the servlet receives and chooses not to deal with a
multipart/form-data upload.
David Engberg <[EMAIL PROTECTED]> wrote:
> Ack, that was a typo on my part. The bug is in JServ 1.0 with Apache 1.3.6
> DSO, Linux RH6. Once again, the problem is that servlets must read ALL of
> the contents of the request input stream before they can send a response or
> redirect. For file uploads, that can be a lot of data. JRun has a similar
> problem, but I was trying to report the JServ bug to this list. :-)
This is a promising idea. But, if I go "InputStream in =
request.getInputStream();" then I find that in.available() == 0.
Doesn't this mean that there is in fact no input waiting to be read?
(I'm actually quite confused about how the ServletRequest works. If
ServletRequest provides all these methods (such as getParameter) which
require it to have already looked at the input stream, then what data
is left to be read when I call getInputStream?
I was simply planning to call in.skip(in.available()) to finish up
with the request input so that the response will work, but if
in.available() == 0 then that obviously won't do much for me.
Help!
Solomon
--
Solomon <|> [EMAIL PROTECTED]
Douglas /|\ http://web.mit.edu/srcd/www/
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]