# What is a buffer attribute in JSP?

JSPJava 8Object Oriented ProgrammingProgramming

#### Jakarta EE/Java JEE 8 Web Development(Servlet, JSP and JDBC)

48 Lectures 4 hours

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" %>
Updated on 30-Jul-2019 22:30:25