On Wednesday Oct 27, 1999, Timothy Owen Reilly wrote:

> My servlets use formatting templates which output HTML to the browser. 
> Unfortunately, I get a broken pipe exception right after they're done
> outputting their HTML.  What I don't get is that this happens right AFTER they
> are done.  There is a function that does the following:
> 
> public void outputHTML( Some parameters) {
>       try {
>               //Output lots of HTML, then end with
>               out.println("</BODY></HTML>");
>       } catch (Exception E) {
>               //This is where the exception is caught
>       }
> }
> 
> The thing which confuses me is that the exception is triggered after all the
> HTML is output.  Both the </BODY> and </HTML> tags make it out to the 
> browser, but a Broken pipe exception is triggered immediately thereafter such
> that it is caught just below this line.
> 
> Can anyone please suggest how to fix this?

Is the browser closing the connection? Are you sending the
appropriate keep-alive headers to the browser (HTTP version
dependent)?

-John

----------------------------------------------------------------
John Rousseau                               [EMAIL PROTECTED]
SilverStream Software                                           
1 Burlington Woods                        Phone: +1 781 238 5564
Burlington, MA 01803                        Fax: +1 781 238 5499
----------------------------------------------------------------


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to