A
Andy Fish
Hi
I have noticed that in a servlet if I do a response.flushBuffer() without
writing any content, the connection to the browser is not closed (tomcat 4
point something).
I would have thought that it is good practice to put a flushBuffer() in at
the bottom of the doGet method so that it gets called whenever there has
been no exception. I can't see anything in the spec to say flushBuffer
should only be called if you have written to the buffer.
Am I doing something stupid here? Or must I really put a flag in my code to
record whether I have written any output?
Andy
I have noticed that in a servlet if I do a response.flushBuffer() without
writing any content, the connection to the browser is not closed (tomcat 4
point something).
I would have thought that it is good practice to put a flushBuffer() in at
the bottom of the doGet method so that it gets called whenever there has
been no exception. I can't see anything in the spec to say flushBuffer
should only be called if you have written to the buffer.
Am I doing something stupid here? Or must I really put a flag in my code to
record whether I have written any output?
Andy