aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doubt in flush method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "doubt in flush method" Watch "doubt in flush method" New topic
Author

doubt in flush method

Naveen Kumar
Greenhorn

Joined: Mar 12, 2008
Posts: 28
hi
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: 8795

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!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: doubt in flush method
 
Similar Threads
Doubt in 'response committed' in 'jsp:forward' - HFSJ pg 412
what commits the response ?
The purpose of flush attribute in jsp:include
Doubt on RequestDispatcher
Regarding sendRedirect