aspose file tools*
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
Author

Servlet 2.3 API question

Ashley Swinson
Greenhorn

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?
Thanks!
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
A google search for "servlet zip filter" found
this article on Zip filters for servlets.
Filters are designed for this sort of thing.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Servlet 2.3 API question