25 Apr
2008
25 Apr
'08
5:25 p.m.
Hi, Yes you can use the velocity Math tool: http://velocity.apache.org/tools/devel/generic/MathTool.html It's configured by default in XE 1.4M2 (being released right now) so you'll only have to do: $mathtool.toInteger("10") -Vincent On Apr 25, 2008, at 7:20 PM, Ngo Thi Hong Nga wrote:
Hi, is it possible to convert a String to Integer in Velocity? I tried with Groovy but I don't know how to do with Velocity.