I don't know if this piece of info is that relevant to my questions but just in case... I'm using the Spring Framework.
Ok, here's the situation: I'm trying to manipulate the response by adding an html comment to the end of the html generated by a jsp. The comment will hold debug information such as all the request parameter & attributes values and other such things.
Now, this was working (I think) until I change the compression filter to use a third party library. As far as I can tell, the only reason why it would of stopped is because they aren't using a buffered outputstream. My previous compression output stream had a 500k buffer. Does this make sense? Is it does make sense, does anyone see a problem with using a big buffer for compression purposes?
So, here's my question. If indeed I can only manipulate the response when it's being buffered AND hasn't yet been flushed, then how can a JSP's generated servlet be able to write out to the buffer a 100k jsp content (for example) if the stream flushes every 50k? If you can't write to a stream is flushed then how can a jsp?