Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet 2.3 API question

 
Ashley Swinson
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Tomcat for my application and I need to get the original server response as a String so that I may compress it. Is there any method in the Servlet 2.3 API that will allow me to do that? For example, I create an output stream by servletResponse.getOutputStream(). How would I create an input stream with the servletResponse so that I can read from it?
Thanks!
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds more like a Servlet question than a J2ME question, so I will move it there...
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A google search for "servlet zip filter" found
this article on Zip filters for servlets.
Filters are designed for this sort of thing.
Bill
 
You can thank my dental hygienist for my untimely aliveness. So tiny:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!