But I have seen lot of people mentioning here about using Maps, how do they
do it?

- Manish



----- Original Message -----
From: "Brad Eisan" <[EMAIL PROTECTED]>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Monday, January 31, 2005 5:37 PM
Subject: Re: Map not working in velocity??


> On 31 Jan 2005, at 12:07, Manish wrote:
>
> > well, I am astonished as hell to see that Map is not working velocity.
> > I have declared it properly,
> > #set( $another_map = {"banana" : "good", "roast beef" : "bad"})
> >
> > but I get this error -
> > Lexical error: org.apache.velocity.runtime.parser.TokenMgrError:
> > Lexical
> > error at line 14, column 22. Encountered: "{" (123), after : ""
> > org.apache.velocity.exception.ParseErrorException: Lexical error:
> > org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at
> > line 14,
> > column 22.  Encountered: "{" (123), after : ""
> > at org.apache.velocity.Template.process(Template.java:141)
> > at
> > org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(R
> > esour
> > ceManagerImpl.java:423)
> > at
> > org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Re
> > sourc
> > eManagerImpl.java:341)
> > at
> > org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance
> > .java
> > :831)
> > at
> > org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance
> > .java
> > :813)
> > at
> > org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSinglet
> > on.ja
> > va:285)
> >
> > Please help!!!
>
> Maps are not yet available in 1.4 .. See the below post ..
>
> http://mail-archives.apache.org/eyebrowse/ReadMsg?listName=velocity-
> [EMAIL PROTECTED]&msgId=2000911
>
> Cheers,
> Brad
>
>
> ---------------------------------------------------------------------
> 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