velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@optonline.net>
Subject Re: velocity servlet buffer
Date Thu, 12 Sep 2002 14:47:43 GMT
On 9/12/02 10:36 AM, "Attila Szegedi" <szegedia@freemail.hu> 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
then

   $writer.flush()

when you want to...

-- 
Geir Magnusson Jr. 
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713



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


Mime
View raw message