Re: content length of a page

Thomas Vandahl <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.user
Message-ID <[email protected]>
[email protected] wrote:
> I'd like to be able to return the content length of a turbine generated
> page (actually it's jetspeed 1), so that the browser can render better.
> Is this possible somehow? Is there already an existing function for this?
> If not, any tip on at which point this could be included (I guess just
> before returning the request stream, when all velocity has been rendered).

I assume you are using VelocityOnlyLayout or something similar. The
method doBuild() handles all the screen execution and the rendering. If
you want to change the processing, you can roll your own and register it
in TurbineResources.properties at

services.VelocityService.default.layout = MyVelocityLayout


Hope this helps,

Bye, Thomas.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.