Page Directive attribute - autoFlush


 

Page Directive attribute - autoFlush

This section contains description of autoFlush attribute of page Directive.

This section contains description of autoFlush attribute of page Directive.

Page Directive attribute - autoFlush

This section contains description of autoFlush attribute of page Directive.

autoFlush Attribute :

The autoFlush Attribute: This attribute is used to control the nature of the servlet output buffer. Its work to show that the buffered output is flushed or not. If buffer value is none then autoFlush can not be true.

This directive causes the servlet to flush the output buffer when full:

<%@ page autoFlush="false" %>
<%@ page autoFlush="true" %>

Usually, the buffer and autoFlush attributes are coded on a single page directive as follows:

<%@ page buffer="16kb" autoflush="true" %>

Example :

<%@page buffer="15kb" autoFlush="false"%>

<%
for (int i = 0; i <2; i++) {
out.println("<html><body><img src='images/DollEm.jpg'/></body></html>");
}
%>

Output:

Ads