velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <>
Subject Re: velocity servlet buffer
Date Thu, 12 Sep 2002 14:47:43 GMT
On 9/12/02 10:36 AM, "Attila Szegedi" <> wrote:

> I solved that by sticking a special iterator in the context that wait()-ed
> when there were no partial results (blocking the rendering machinery) until
> another thread that received a partial result pushed it into a queue and
> notify()ed. Template output was flushed on end of the foreach block. That
> said, the template engine was not Velocity, but another one that happens to
> have a flush directive, but you can no doubt roll your own flusher for
> Velocity as well by writing some ammount of almost trivial glue code... With
> Velocity it helps if you're a do-it-yourself enthusiast when it comes to any
> feature outside of its minimalist philosophy :-)

Simple solution to that would be to put your writer into the context, and


when you want to...

Geir Magnusson Jr. 
Research & Development, Adeptra Inc.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message