portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sean Taylor" <da...@bluesunrise.com>
Subject RE: Portlet.isCacheable?
Date Wed, 20 Mar 2002 15:33:02 GMT
> I don't know how to do this in a way that we can catch and 
> save the output.  Any clues?

If you want to use your cache, return the output via 

        return new ClearElement( s );

Or whatever ecs element you want to use.

If you want to get the non-cached template, return:

	TurbineVelocity.handleRequest(context, templatePath,

In order to get the cached content, you have to store the result in a

	TurbineVelocity.handleRequest(context, templatePath,
stringWriter or byteOutputStream);

And then return that buffer 

Why do you need to do this, is Velocity merging too slowly?

To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>

View raw message