You should just need to use the same context when merging both templates.
or, if you are using VelocityView, add an application-scoped java.util.Hashtable to your toolbox and put variables you wish to be global into that. On 11/21/06, rjain <[EMAIL PROTECTED]> wrote:
Hi I have two templates Template.vm and Template1.vm I define a variable $fooMap which is a hashMap in one Template. It is not visible in the other template. Does the #set puts the variable in the Velocity Context. How do I define global variables which are visible in all scopes. regards Rajesh -- View this message in context: http://www.nabble.com/Velocity-Variables-across-Templates-tf2681933.html#a7480721 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]
