This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

commiting response


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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: commiting response
It's not a secret anymore!