File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doubt in flush method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doubt in flush method" Watch "doubt in flush method" New topic

doubt in flush method

Naveen Kumar

Joined: Mar 12, 2008
Posts: 28
I have read HFSJ book where the purpose of flush is stated as

Once the flush method is invoked ,the response object is commited.
commited means the response is sent to the client.

but below in this url flushurl

Mark peabody has given a sample coding .where the flush method is used more then once and the sample coding is working fine.

my doubt is

1., If a flush method is used ,is the response is commited or not?
2., If the response is commited means ,then how can we use flush or print message once again ??

please clarify me.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243

He probably means that once you flush your jsp page, you cannot forward to another jsp page.

SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Don't get me started about those stupid light bulbs.
subject: doubt in flush method
Similar Threads
Regarding sendRedirect
what commits the response ?
Doubt in 'response committed' in 'jsp:forward' - HFSJ pg 412
The purpose of flush attribute in jsp:include
Doubt on RequestDispatcher