title: How to get the HTML content from HttpServletResponse?
body: <p>I have managed to setup a filter for the servlet on tomcat, but the HttpServletResponse only has functions to get the response headers, not the actual HTML response itself. Some reading told me that I have to make a wrapper class but I don't know how to go about this. After a lot of head wracking, I decided to post this on stackoverflow.</p>
  
  <p>How can I retrieve the HTML content from the HttpServletResponse? I need to save it as a text file.</p>