[Wicket-user] Size of the HTML response page

2007-02-05 Thread Sean Sullivan

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?

Sean
-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Size of the HTML response page

2007-02-05 Thread Igor Vaynberg

see IResponseFilter and its javadoc

-igor


On 2/5/07, Sean Sullivan [EMAIL PROTECTED] 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?

Sean


-
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=lnkkid=120709bid=263057dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Size of the HTML response page

2007-02-05 Thread Al Maw
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user