I am creating new VelocityContext object on evey call to evaluate. VelocityContext context=new VelocityContext(m_velocityContextMap);
However the m_velocityContextMap that i am passing into VelocityContext constructor is a static variable. Nathan Bubna wrote: > > Use a different context for different calls to evaluate(). > > On 4/4/07, Ashish Parikh <[EMAIL PROTECTED]> wrote: >> >> Hello, >> >> Velocity in caching the variables created in a velocity template. >> E.g. >> 1) In template aTemp.vm, I have >> #set ($animal = "Monkey") >> >> The aTemp.vm has been evaluated by Velocity.evaluate(). >> >> 2) In bTemp.vm, if i do >> $animal, It prints out Monkey which was sent in aTemp.vm. >> >> I am using singleton velocity and doing Velocity.init just once on the >> startup of the webapplication. >> >> Anyways to avoid this?? >> >> Thanks in advance >> >> >> -- >> View this message in context: >> http://www.nabble.com/Velocity-template-variables-caching-issue-tf3528978.html#a9848089 >> Sent from the Velocity - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Velocity-template-variables-caching-issue-tf3528978.html#a9848152 Sent from the Velocity - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
