I was wondering if there was an easy way to serve GZipped content with Java Servlets. I already have the app up and running so the modifications needed should be to
Look at GzipOutputStream class. Something like this:
response.setContentType(...) GzipOutputStream os = new GzipOutputStream(response.getOutputStream); //write to os Writer writer = new PrintWriter(os);
Then use writer like you do usually.