You only get the IOException if you use a ServletOutputStream for writing you response.

If you use a PrintWriter you have to call PrintWriter.checkError after print or 
println.

It says in the Jason Hunter book that whether you get errors from either is 
implementation dependent and server specific. 
HTH


***********************************************************
Brett Knights                             626-432-5767 work
[EMAIL PROTECTED]                 626-355-1017 home 
Jason Hunter says....
***********************************************************



> > Is there any way for a servlet to figure out that
> > it's sending data nowhere, or are there any plans for such 
> a feature?
> 
> I believe that it is possible because you will get a 
> IOException if the
> outputstream is closed.



-- --------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to