Returning String without Whitespace from Velocimacros

2013-08-01 Thread O. Olson
Hi, I am new to using Apache Velocity. What is the correct way of returning a string from a Macro or a Velocimacro?  Since I did not have a clue on how to return a string from a Macro, I decided to do something like #macro(query_url $query_param) q=$query_param #end  I can then call the

What does Velocimacro with a Body mean?

2013-08-05 Thread O. Olson
Hi,       I am new to Velocity and I am wondering what Velocimacro with a Body means? Here, I am referring to the description in

Re: What does Velocimacro with a Body mean?

2013-08-07 Thread O. Olson
of you, O. O.       - Messaggio originale - Da: Alex Fedotov a...@kayak.com A: Velocity Users List user@velocity.apache.org; O. Olson olson_...@yahoo.it Cc: Nathan Bubna nbu...@gmail.com Inviato: Mercoledì 7 Agosto 2013 16:25 Oggetto: Re: What does Velocimacro with a Body mean? It does

Re: What does Velocimacro with a Body mean?

2013-08-08 Thread O. Olson
()#end   Simply doing: #macro(my_trim)$!bodyContent.trim()#end   Does not work.   Thanks again, O. O. - Messaggio originale - Da: Erik Hatcher erik.hatc...@gmail.com A: Velocity Users List user@velocity.apache.org; O. Olson olson_...@yahoo.it Cc: Sergiu Dumitriu sergiu.dumit...@gmail.com; Alex

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

Re: Documentation regarding Custom Utility Class for Velocity

2013-08-08 Thread O. Olson
Thank you Sergiu for your quick response. I think what I wanted was really a Plain Old Java Object to be placed in the Velocity Context.   Regarding this Object placed in the Velocity Context:   1.  1. Would this Object be instantiated each time a new request is placed? i.e. does this need

Re: Documentation regarding Custom Utility Class for Velocity

2013-08-08 Thread O. Olson
- Da: O. Olson olson_...@yahoo.it A: Velocity Users List user@velocity.apache.org 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 Java Object

Re: Documentation regarding Custom Utility Class for Velocity

2013-08-08 Thread O. Olson
originale - Da: Nathan Bubna nbu...@gmail.com A: Velocity Users List user@velocity.apache.org; O. Olson olson_...@yahoo.it 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