-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Solomon Douglas wrote:
> [snip]
> Hmm... why is it that the print() and println() methods of PrintWriter
> can't throw IOError, but the write() methods can? Maybe there's an
> error on the stream but the servlet is blithely printing more data
> cause no exception is thrown. I'll look into this more.
>
You can call checkError() on the PrintWriter to see if it has detected any
errors. There won't be any unless you've written more than whatever the
buffer size of the stream is, and physical output has actually taken place.
According to the JavaDocs, this also has the side effect of flushing the
stream -- which raises my SWAG about what your problem might be -- are you
calling writer.flush() at the end of the servlet? If not, give that a try
and see if the output shows up.
>
> Solomon
Craig
--
--------------------------------------------------------------
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]