velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piero de salvia <pie...@yahoo.com>
Subject Velocity syntax question (beginner question)
Date Fri, 08 Jun 2001 20:10:55 GMT
hi guys,

I'm sharpening my Velocity skills, maybe one day I'll
become a developer...

In the meantime, this works:

#set( $Animals = [ "cats", "dogs", "mice"] )

but this does not:

#set( $Animals = [ "cats", 
"dogs", 
"mice"] )


i.e. parser won't take newlines and will complain like
so:

apache.velocity.exception.ParseErrorException:
Encountered "\n" at line 2, column 53. Was expecting
one of: "[" ... ... "true" ... "false" ... ... ... "{"
... 


What to do if I have a long list and want the newlines
to make it clearer to read?

piero de salvia

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Mime
View raw message