try $myMap.put("123","test")

Barbara Baughman
X2157

On Wed, 19 Jul 2006, Matthias Hendler wrote:

> Hello,
>
> I try to put a key/value pair to a hashmap from velocity template.
>
> First I put a new hashmap object into velocity context named "myMap".
> In my templates I can write:
> ...
> $myMap.clear()
> Size: $myMap.size()
> ...
> The above works fine. Now I want to put a key/value pair into the hashmap 
> using the method put(object, object).
>
> So I wrote:
> ...
> ${myMap.put(["123", "test"])}
> ...
> And I get an exception: "${myMap.put(["123", "test"])} is not a valid 
> reference."
>
> What's wrong?
>
> Thanx
> Matthias
>
>
>
>
>
>
>
>
>
> --
>
>
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
> ---------------------------------------------------------------------
> 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]

Reply via email to