This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Set content -length Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Set content -length" Watch "Set content -length" New topic

Set content -length

Leandro Oliveira
Ranch Hand

Joined: Nov 07, 2002
Posts: 298
What happens when we set the content length??? does anything different happens??
Thanks, in advance.
Karin Paola Illuminate
Ranch Hand

Joined: Oct 18, 2002
Posts: 109
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.

I not only use all the brains that I have, but all that I can borrow. [Laurence J. Peter]
I agree. Here's the link:
subject: Set content -length
jQuery in Action, 3rd edition