Duane Morse wrote:
>
> Should it be necessary to call the response object's flushBuffer()
> method at the end of a servlet or JSP?
>

 Should it? No[1]:

   5.5 Closure of Response Object

     A number of events can indicate that the servlet has
     provided all of the content to satisfy the request and
     that the response object can be considered to be closed.

     The events are:

       - The termination of the service method of the servlet.
       - When the amount of content specified in the
         setContentLength method of the response has been
         written to the response.
       - The sendError method is called.
       - The sendRedirect method is called.

     When a response is closed, all content in the response
     buffer, if any remains, must be immediately flushed to
     the client.

 At least that's the theory. It's certainly possible that
some servlet containers don't work right :-)



[1] Java Servlet Specification v2.3 (PFD).
    http://java.sun.com/products/servlet/download.html
    Hmm, looks like I'm a pfd revision behind, but I
    fairly confident the bit I quoted hasn't changed.


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to