Hi,

the ServletResponse javadoc doesn't state if and when one should call
getWriter().close() or getOutputStream().close(). I have a filter that
writes comments after the request was processed. Wicket sometimes closes the
response and sometimes not. For instance
BufferedHttpServletResponse.writeTo(HttpServletResponse servletResponse)
calls:

final OutputStream out = servletResponse.getOutputStream();
out.write(this.byteBuffer);
out.close();

In that case my filter cannot append anything (I will have to wrap the
response). I think that the close() should not be called at all, flush() is
better. It is responsibility of Servlet to close the stream.

What is your opinion?

Jan

-- 
Jan Bares
http://jan.vegetband.cz




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to