Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Which actions will commit a response ?

 
James Adams
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please provide a list of actions/conditions which will commit a response ? I'm only aware of HttpServletResponse.sendError() and PrintWriter.flush().
Thanks in advance.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you might be including this with the .flush(), but if you output enough bytes to the buffer, then .flush() will be called "for you"... in which case, this also will commit the response.
 
Without deviation from the norm, progress is not possible - Zappa. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!