GeeCON Prague 2014*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes commiting response 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 "commiting response " Watch "commiting response " New topic
Author

commiting response

Sharath
Greenhorn

Joined: Oct 19, 2005
Posts: 28
Can someone tell me when will a response be commited exactly ?
dennis zined
Ranch Hand

Joined: Mar 07, 2003
Posts: 330
According to Hanumant Deshmukh, et al. book, it is committed after calling the flush method of the PrintWriter object.

On a different note, the book mentioned that calling the sendRedirect method after a response has been committed will throw an IllegalStateException. I tried that and it did not throw any exception. It just did not redirect.



SCJP 1.4<br />SCWCD 1.4
 
GeeCON Prague 2014
 
subject: commiting response