This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 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: 9739

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, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
I agree. Here's the link:
subject: doubt in flush method