flushBuffer
public void flushBuffer()
throws java.io.IOExceptionForces any content in the buffer to be written to the client. A call to this method automatically commits the response, meaning the status code and headers will be written.
--------------------------------------------------------------------------------
resetBuffer
public void resetBuffer()Clears the content of the underlying buffer in the response without clearing headers or status code. If the response has been committed, this method throws an IllegalStateException.
My doubt is related to the request.getRequestDispatcher(). We are not allowed to commit the response before a call to this method, otherwise it will throw an IllegalStateException. by commiting we mean responce headers (status code etc)are written to the brower.
that means we can call resetBuffer() before making the call , nut can not call the flushBuffer().
Agree or Disagree??
Thanks in advance
so