velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Cohen <sco...@javactivity.org>
Subject Re: Escaping question
Date Mon, 20 Jul 2009 21:51:51 GMT
Okay, I found THIS:

http://www.mailinglistarchive.com/velocity-user@jakarta.apache.org/msg00552.html

and it works, but I'd still rather load the tool at the time the Engine 
is initialized, rather than have to put it in the context everywhere I 
want to use it.  So what I'm really looking for is a way to do that.



Steve Cohen wrote:
>
> Steve Cohen wrote:
>
> ...
>
> (never mind any of what I wrote before, I have now boiled it down to 
> one hopefully intelligent question):
>
>
> I am NOT using VelocityView but instantiating, configuring and 
> initializing a VelocityEngine in java code.  I don't use Velocity View.
> Since I don't use VelocityView, and the documentation for Velocity 
> Tools assumes I do
>
> (http://velocity.apache.org/tools/releases/1.4/generic/EscapeTool.html) 
> telling me this:
>
>> *Toolbox Configuration Example*
>>      
>> <tool>
>>   <key>esc</key>
>>   <scope>application</scope>
>>   <class>org.apache.velocity.tools.generic.EscapeTool</class>
>> </tool>
>>
> how do I perform this same step in java code (i.e. what 
> applicationAttributes or runtime Properties must I set, in order for 
> my VelocityEngine to see the Tools generally or the EscapeTool in 
> particular (which is all I need)?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>
>


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


Mime
View raw message