This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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]
Have you checked out Aspose?
subject: Set content -length
It's not a secret anymore!