You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Robert Zeigler <ro...@scazdl.org> on 2005/08/04 23:22:35 UTC

"template" caching when using evaluate?

Hello,

I'm in the process of integrating velocity into an app.
The templates are pulled from a database, so I'm using
the "evaluate" method, providing the templateTag, etc.
(assuming caching is enabled), does velocity attempt to
cache the inString text?

Thanks,

Robert

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


Re: "template" caching when using evaluate?

Posted by Sreeni Gali <sr...@gmail.com>.
Hi Friends,

I am new to velocity. i just wanted to know how to manage session
across the velocity templates and i just wanted to invalidate the
session in one of the template. How to do it this? i don't want to
clik the link or button to do this..i wanted to check the session data
and invalidate in the templat..

Can any body help me out?
Thanks advance

Regards
Gali

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


Re: "template" caching when using evaluate?

Posted by Will Glass-Husain <wg...@forio.com>.
Yes - it's not hard.  Look in the Velocity source code for examples.  Though 
if you search the mailing list archives, I think someone already wrote one.

WILL

----- Original Message ----- 
From: "Robert Zeigler" <ro...@scazdl.org>
To: "Velocity Users List" <ve...@jakarta.apache.org>
Sent: Thursday, August 04, 2005 2:51 PM
Subject: Re: "template" caching when using evaluate?


> Thanks.  Would a better alternative, then, to be to implement
> some sort of custom resource loader?
>
> Thanks again,
>
> Robert
>
> Will Glass-Husain wrote:
>> No.  For frequent Velocity parsing, using evaluate can be a major
>> performance hit.
>>
>> Best,
>>
>> WILL
>>
>> ----- Original Message ----- From: "Robert Zeigler" <ro...@scazdl.org>
>> To: "Velocity Users List" <ve...@jakarta.apache.org>
>> Sent: Thursday, August 04, 2005 2:22 PM
>> Subject: "template" caching when using evaluate?
>>
>>
>>> Hello,
>>>
>>> I'm in the process of integrating velocity into an app.
>>> The templates are pulled from a database, so I'm using
>>> the "evaluate" method, providing the templateTag, etc.
>>> (assuming caching is enabled), does velocity attempt to
>>> cache the inString text?
>>>
>>> Thanks,
>>>
>>> Robert
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 


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


Re: "template" caching when using evaluate?

Posted by Robert Zeigler <ro...@scazdl.org>.
Thanks.  Would a better alternative, then, to be to implement
some sort of custom resource loader?

Thanks again,

Robert

Will Glass-Husain wrote:
> No.  For frequent Velocity parsing, using evaluate can be a major
> performance hit.
> 
> Best,
> 
> WILL
> 
> ----- Original Message ----- From: "Robert Zeigler" <ro...@scazdl.org>
> To: "Velocity Users List" <ve...@jakarta.apache.org>
> Sent: Thursday, August 04, 2005 2:22 PM
> Subject: "template" caching when using evaluate?
> 
> 
>> Hello,
>>
>> I'm in the process of integrating velocity into an app.
>> The templates are pulled from a database, so I'm using
>> the "evaluate" method, providing the templateTag, etc.
>> (assuming caching is enabled), does velocity attempt to
>> cache the inString text?
>>
>> Thanks,
>>
>> Robert
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org


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


Re: "template" caching when using evaluate?

Posted by Will Glass-Husain <wg...@forio.com>.
No.  For frequent Velocity parsing, using evaluate can be a major 
performance hit.

Best,

WILL

----- Original Message ----- 
From: "Robert Zeigler" <ro...@scazdl.org>
To: "Velocity Users List" <ve...@jakarta.apache.org>
Sent: Thursday, August 04, 2005 2:22 PM
Subject: "template" caching when using evaluate?


> Hello,
>
> I'm in the process of integrating velocity into an app.
> The templates are pulled from a database, so I'm using
> the "evaluate" method, providing the templateTag, etc.
> (assuming caching is enabled), does velocity attempt to
> cache the inString text?
>
> Thanks,
>
> Robert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 


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