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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
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: 9521
    
    2

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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: doubt in flush method