velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brad Eisan <b...@5star-network.com>
Subject Comments in Velocity maps ..
Date Thu, 20 Jan 2005 13:51:13 GMT
Hello,

I have a quick question regarding maps and nesting comments in them.

I have a map as follows:

#set( $foo = {
"1" : "Baz",
"2" : "Bat",
"3" : "Bar"
})

When I change it to have comment(s) nested within:

#set( $foo = {
## Products
"1" : "Baz",
"2" : "Bat",
"3" : "Bar"
})

I get a Parser Exception with the explanation "Encountered "\n" at line 
2, column 12."

This same error occurs where ever the comment is placed (beside a 
key-value pair, the first line, etc.). Does anyone know if there is a 
way to nest comments in a Velocity map?

Thanks,
Brad


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


Mime
View raw message