velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomek Maćkowski <tmackow...@gmail.com>
Subject Escapng problem
Date Tue, 06 Dec 2005 07:00:51 GMT
Hi

I have a problem with escaping '$' character in Velocity

I want to produce literal:
arg1value="${var:maxlength}"

When i type it in my template "as is" I recive an exception:

     [java] org.apache.velocity.exception.ParseErrorException: 
Encountered ":maxlength}\"\r\n" at line 25, column 49.
     [java] Was expecting one of:
     [java] "}" ...
     [java] <DOT> ...


When I type

arg1value="\${var:maxlength}"

result is the same.

---------------------------------------------------------------------
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