The buffer attribute specifies the buffering characteristics for the server output response object.
You may code a value of "none" to specify no buffering so that the servlet output is immediately directed to the response object or you may code a maximum buffer size in kilobytes, which directs the servlet to write to the buffer before writing to the response object.
To direct the servlet to write the output directly to the response output object, use the following −
<%@ page buffer = "none" %>
Use the following to direct the servlet to write the output to a buffer of size not less than 8 kilobytes −
<%@ page buffer = "8kb" %>