JSP page directive – autoFlush

autoFlush attribute is used to specify whether or not to automatically flush out the output buffer when it is full.  Syntax of autoFlush attribute available for page directive is written as:

<%@ page autoFlush = “true|false” %>

In the above example, page and autoFlush are keywords. True or false value can be set to autoFlush attribute, by default, its value is true . This means, the buffer will be flushed automatically when it is full. When the autoflush attribute is set to false, then an exception is thrown when the output buffer gets full and results in overflow.

NOTE: The user should not to set the autoflush to false when the buffer attribute is set to none.

Leave a Reply

Your email address will not be published. Required fields are marked *