Download the tapestry source and look how the GZIPFilter is contributed. You will need to create your own org.apache.tapestry5.services.HttpServletRequestFilter and contribute it "before:GZIPFilter".
Perhaps you won't need to wrap the OutputStream. I *think* that tapestry is nice enough to set the contentLength for every response. You will need to write a response wrapper to provide a getter for the content length (since there is not a getter in the servlet API). public class LoggingFilter implements HttpServletRequestFilter { public boolean service(HttpServletRequest request, HttpServletResponse response, HttpServletRequestHandler handler) throws IOException { MyResponseWrapper responseWrapper = new MyResponseWrapper(response); boolean handeled = handler.service(request, responseWrapper); System.out.println(responseWrapper.getContentLength()); return handeled; } } -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-log-page-on-load-time-page-size-tp5719514p5719530.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org