Home Jsp The buffer Attribute of page Directive In JSP



The buffer Attribute of page Directive In JSP
Posted on: February 6, 2008 at 12:00 AM
This section just introduces about the buffer attribute of the page directive in JSP.

The buffer Attribute of page Directive In JSP

     

This section just introduces about the buffer attribute of the page directive in JSP. This attribute sets the buffer size in kilobytes i.e. used by the out object to handle output generated by the JSP page on the client web browser. If you specify the buffer size then the output will be buffered with at least 8kb because the default and minimum value of the buffer attribute is 8kb.

In this section you will learn the buffer attribute syntaxes and usage of it in your JSP page for your JSP application. In the following JSP page, page cannot be flushed automatically because the value of the autoFlush is set with false. You cannot set the value of autoFlush is false when buffer size if you specify "none".

Here is the JSP code:

<%@page buffer="5kb" autoFlush="false" %>
<%
	for(int i = 0; i < 10; i++){
		out.println("<html><body><img src=images/marijuana_leaf.jpg />
</body></html>");
	}
%>

Output of the above JSP program:

Download this JSP example.

Related Tags for The buffer Attribute of page Directive In JSP:
cwebjspbrowserobjectclientsizesedoutputdefaultpagebuffervaluesetsattributebyteclithissetrowjshandleifrowsiewithtoinibyteswseciastwsgenerateeilitliputuseulpeimbrowsefaultinasmntoutminimumtrmincaminjclesspecagelobobjratesspbufferedatkishalleaandvaufttzssrithstalufeefaultkbjemindono


More Tutorials from this section

Ask Questions?    Discuss: The buffer Attribute of page Directive In JSP   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

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.