HttpServletResponse « Filter « JSP-Servlet Q&A





1. Need help with creating custom HttpServletResponse    stackoverflow.com

Suddenly stuck on generating custom servlet response. I want to replace servlet response with predefined one:

public class MyCustomResponse extends HttpServletResponseWrapper {
  private String customOutput;
  public MyCustomResponse(String customOutput, HttpServletResponse response) ...

2. Filters and HttpServletResponse    coderanch.com