• Post Reply Bookmark Topic Watch Topic
  • New Topic

Query on response.sendRedirect  RSS feed

 
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
Boost this thread!