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:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.