Sean Sullivan wrote:
> I am building a web application with Wicket 1.3 and I want to be able 
> determine the number of bytes in the HTML response.
>  
> I know that I can inspect document.fileSize on the client, but what I'm 
> looking for is to have access to this information on the server.
>  
> Does Wicket's RequestCycle or Response object have this type of information?

This isn't really a Wicket-specific thing. You could easily write a 
javax.servlet.Filter that did this. Create an object that wraps the 
response object and delegates all the methods except getOutputStream(). 
Implement a getOutputStream() that wraps the response.getOutputStream() 
one and counts calls to the various write() methods. Easy. :)

Al

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to