• Post Reply Bookmark Topic Watch Topic
  • New Topic

Filters and HttpServletResponse  RSS feed

 
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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!