This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Set content -length

 
Leandro Oliveira
Ranch Hand
Posts: 298
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens when we set the content length??? does anything different happens??
Thanks, in advance.
 
Karin Paola Illuminate
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read that it has something to do with the problem "data truncation": Web client times out before the Servlet or JSP complets the response. A solution is to call the HttpServletResponse setContentLength method - if you are certain you can provide an accurate value.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic