In some of the Servlet2.2 API, eg. getSession(boolean create), it says that "you must call this method before the response is committed". What does it mean by "committing" the response?
Prasad Thammineni In Servlet 2.2 API, a servlet container is allowed to buffer the response in order to improve performance. The output and header information that is written to the response object is buffered and usually flushed or committed when the doPost(), doGet() or service() method returns. You can also flush the buffer programmatically. Once the buffer is flushed or committed, any headers you set will be ignored by the container. That is what the specification is referring to when it says that certain methods should be called before the response is committed.