2011-03-07 36 views
1

操作我想使用的子方法VTL以下遞增在VTL

#set ($Score = $row.getValue("Score").substring(0,$row.getValue("Score").length()-1)) 

提到,但它說

Encountered "-1" at 
Was expecting one of: 
    "," ... 
    ")" ... 
    <WHITESPACE> ... 
    <DOT> ... 

請幫我解決這個問題。

感謝 紀

+0

通過VTL,你的意思速度? – skaffman

+0

是速度模板語言 – kishore

回答

0
​​

,或者,如果你正在使用VelocityTools,你可以做這個醜陋的東西:

#set($Score = $row.getValue("Score").substring(0, $math.sub($row.getValue("Score").length(), 1))