Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials:
 

Software Solutions and Services
 

 
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments
 
The buffer Attribute of page Directive In JSP 
 

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.

                         

» View all related tutorials
Related Tags: java c string jsp ide class strings script object io objects method get char ip using sequence id declaration length

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

4 comments so far (
post your own) View All Comments Latest 10 Comments:

These kind of examples make learning java tolerable. Thanks !

Posted by sonia on Friday, 10.5.07 @ 13:28pm | #31798

Thanx for your tutorials

Posted by Saraswathi on Thursday, 06.21.07 @ 11:24am | #19850

This examples are really good.

Posted by Avishek Kar on Saturday, 05.19.07 @ 09:15am | #16518

This Tutorial is nice to fallow up.Thanku

Posted by neelimayalamanchili on Wednesday, 04.11.07 @ 10:43am | #13836

Training Courses
Tell A Friend
Your Friend Name
Website Designing Services
 
Web Designing Packages From $150!
 
Website Designing Company Web Hosting
 
Website Designing Quotation
 
Search Tutorials:

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.