public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException { ServletOutputStream sos = null; try { sos = response.getOutputStream(); // set buffer size response.setBufferSize(FAILED.length() * 2); // Write some data to the stream sos.println(FAILED); // Reset the response response.reset(); sos.println(PASSED); } catch (IllegalStateException e) { throw e; } }
public void reset() { response.reset(); }
/** @see javax.faces.context.ExternalContext#responseReset() */ @Override public void responseReset() { response.reset(); }