Share on Google+Share on Google+

Page Directive attribute - buffer

Advertisement
This section contains description of buffer attribute of page Directive.

Page Directive attribute - buffer

This section contains description of buffer attribute of page Directive.

buffer Attribute :

This attribute is used for specifying the buffer size for the output stream. Buffer size is specified in kilobytes for the server output response object. If you put its value none then there is no buffering and the output is written immediately by PrintWriter. By default its value is 8KB.

Example :

<html>
<body>
<%@page buffer="16kb" %>
<b>Date :</b> <%= new java.util.Date() %>
</body>
</html>

Output:

Advertisements

Posted on: November 26, 2012 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.