Win a copy of Design for the Mind this week in the Design 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
GenRocket Founder
Ranch Hand
Posts: 15302
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: 13058
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic