velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Lee <ag...@earthlink.net>
Subject RE: hash map or equivalent possible
Date Thu, 19 Dec 2002 18:55:07 GMT
At 8:28 AM +0000 12/19/02, Charlene Mitchell wrote:
>Hi,
>
>Where would I get $map from in the first place?
>
>I cannot add it to the context as I only have access
>to Velocity templates and not to the Java code.
>

Someone once posted a hack that was something like this:


#set( $foo = "ignored" )
#set( $map = $foo.getClass().forName("java.util.HashMap").newInstance() )


--Andy

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


Mime
View raw message