This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query on response.sendRedirect

 
Pawanpreet Singh
Ranch Hand
Posts: 264
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is mentioned on page -137 in HFSJ that after response is committed, a call to sendRedirect() will throw an IllegalStateException.

Could anybody let me know what is meaning of response object committed.

Thanks in advance

Pawan
SCJP 5.0, Preparing for SCWCD 1.4
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Response is already sent to the client i.e response is flushed
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
out.flush() will cause the response to comit.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic