-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gregor,
On 3/9/2009 2:49 PM, Gregor Schneider wrote: > Don't have an example using ServletResponseWrapper here, but reading > this thread might shed some light: > > http://www.nabble.com/-Http-ServletResponseWrapper.getOutputStream()-td20452362.html > Another good start might be http://java.sun.com/products/servlet/Filters.html Or my recent thread: http://www.nabble.com/Capturing-a-complete-request-(free-filter-code!)-td22123786.html There's a complete, working example there of capturing both the input of a request and the output of a response. Of course, it's more of a "tee"-style capture, but you get the idea. About the original filter not working: Ben, did you implement their filter exactly, or did you use it as a guide to build one of your own? Would you care to post the code? I object to their implementation of their response wrapper's getOutputStream method because it always returns a new object instead of re-using "the" object. I suspect it doesn't mean much in practical terms, but it could interfere with output if the servlet (or JSP) calls getOutputStream multiple times. I would suggest adding lots of debug logging to your class to see what is being called when. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkm5ITgACgkQ9CaO5/Lv0PBsFACfT5oIKSBXvO+4hMUsOz/TgFm6 azgAn2SrQvwE2pbuJF2mPTDmhyz85/C8 =BNje -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org