File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Buffer the entire Response

 
Vasim Patel
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Is there a way in which I can buffer the entire servlet response(headers and content) and send it to the client?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose you could use the response method setBufferSize() with some outlandish value. Why?
Bill
 
Peter Bell
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't send redirects after you've started sending pages. So maybe that's why? But if that was the case, you're still better off figuring out if you need to redirect or not before anything is written to the response.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic