Should one call .close() on HttpServletResponse.getOutputStream()/.getWriter()?
Normally you should not close the stream. The servlet container will automatically close the stream after the servlet is finished running as part of the servlet request life-cycle. For instance, if you closed the stream it would not be available if you implemented a Filter. Having said all that, if you do close it nothing … Read more