File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet 2.3 API question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet 2.3 API question" Watch "Servlet 2.3 API question" New topic

Servlet 2.3 API question

Ashley Swinson

Joined: Jul 20, 2004
Posts: 12
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?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

This sounds more like a Servlet question than a J2ME question, so I will move it there...

GenRocket - Experts at Building Test Data
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
A google search for "servlet zip filter" found
this article on Zip filters for servlets.
Filters are designed for this sort of thing.
I agree. Here's the link:
subject: Servlet 2.3 API question
It's not a secret anymore!