[7.c] Buffer attribute in JSP page directive

Buffer attribute in JSP page directive

This attribute is used to define the buffer size.
Syntax: <%@ page buffer=”value”%>

Example:

welcome.jsp
<%@ page buffer="32kb" %>  
 
<html>
 <head>
  <title>buffer page directive example</title>
 </head>
 <body> 
  <h3>Hello this is a buffer page directive example.</h3>
 </body>
</html>
web.xml
<web-app>
 
  <welcome-file-list>
          <welcome-file>welcome.jsp</welcome-file>
  </welcome-file-list> 
 
</web-app>

Output: