Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Filters and HttpServletResponse

 
Tobi McFarland
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi-

I'm trying to use a filter to evaluate a servlet response and potentially log the original request parameters if the response contains a particular value. I have the filter set up and working, but I'm not sure what to do with the OutputStream returned from HttpServletResponseWrapper.

I'm not sure what the best way to use the OutputStream is. Thanks in advance for any thoughts.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tobi,
There might be enough in http://simple.souther.us/capture.war to get you going. It's just a filter that I wrote to dump the response to standard out.
 
Tobi McFarland
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I'll check it out!
 
Message for you sir! I think it is a tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!