File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Set content -length" Watch "Set content -length" New topic
Author

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: http://aspose.com/file-tools
 
subject: Set content -length
 
Similar Threads
Error in Dowlnoading
Accessing Java HttpServer from PHP;
how many bytes can XMLHttpRequest.responseText hold?
Problem with setBinaryStream
Using response.setContentLength in a Web Application ?