velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alec Swan <alecs...@gmail.com>
Subject Evaluating basic expression
Date Tue, 16 Aug 2011 17:15:33 GMT
Hello,

I am puzzled why evaluating ${var + 5} with var->1 bindings does not
produce 6? Here is some sample code:

Velocity.evaluate(new VelocityContext(Collections.singletonMap("var",
1)), writer, getClass().getSimpleName(), "${var + 5}")

Thanks,

Alec

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


Mime
View raw message