I am using Tomcat to compress my HTML content like this:
Have a look at http://sourceforge.net/projects/pjl-comp-filter/.
Other custom solutions may have memory leaks.
Also, if you are using mod_jk then you are certainly not using the 8080 connector (which supports compression) for those requests.