Re: Documentation regarding Custom Utility Class for Velocity

2013-08-08 Thread O. Olson
originale - Da: Nathan Bubna A: Velocity Users List ; O. Olson Cc: Inviato: Giovedì 8 Agosto 2013 14:06 Oggetto: Re: Documentation regarding Custom Utility Class for Velocity If you are putting the MyUtil class into the context yourself (as your code seems to suggest, then it is up to you

Re: Documentation regarding Custom Utility Class for Velocity

2013-08-08 Thread Nathan Bubna
If you are putting the MyUtil class into the context yourself (as your code seems to suggest, then it is up to you whether you want to create a single static instance or a new instance for each request. This is out of Velocity's control as you describe things. If you'd like tool instantiation to

Re: Documentation regarding Custom Utility Class for Velocity

2013-08-08 Thread O. Olson
syntax?   Thank you, O. O. - Messaggio originale - Da: O. Olson A: Velocity Users List Cc: Inviato: Giovedì 8 Agosto 2013 12:29 Oggetto: Re: Documentation regarding Custom Utility Class for Velocity Thank you Sergiu for your quick response. I think what I wanted was really a Plain Old Jav

Re: Documentation regarding Custom Utility Class for Velocity

2013-08-08 Thread O. Olson
Utility Class for Velocity It depends on what you mean by velocity tools. As the description on http://velocity.apache.org/tools/releases/2.0/ says, a tool is just a Plain Old Java Object, so any Java object can act as a tool. Officially, a "tool" is something that can be automatically

Re: Documentation regarding Custom Utility Class for Velocity

2013-08-08 Thread Sergiu Dumitriu
It depends on what you mean by velocity tools. As the description on http://velocity.apache.org/tools/releases/2.0/ says, a tool is just a Plain Old Java Object, so any Java object can act as a tool. Officially, a "tool" is something that can be automatically placed in the context when you have a

Documentation regarding Custom Utility Class for Velocity

2013-08-08 Thread O. Olson
Hi,     I am wondering if there is any documentation on writing your own Utility Class or Custom Tool to add to Velocity. The only place I found some help is http://www.sergiy.ca/how-to-create-custom-tools-for-apache-velocity/  (There is something regarding Custom Tools at http://velocity.apac