VTL中的递增操作
我正在尝试使用 VTL 中的子字符串方法,如下所述,
#set ($Score = $row.getValue("Score").substring(0,$row.getValue("Score").length()-1))
但它显示
Encountered "-1" at
Was expecting one of:
"," ...
")" ...
<WHITESPACE> ...
<DOT> ...
请帮助我解决此问题。
谢谢 基肖尔
I am trying to use the substring method in VTL as mentioned below
#set ($Score = $row.getValue("Score").substring(0,$row.getValue("Score").length()-1))
but it says
Encountered "-1" at
Was expecting one of:
"," ...
")" ...
<WHITESPACE> ...
<DOT> ...
Please help me in resolving this issue.
Thanks
Kishore
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
或者,如果你使用 VelocityTools,你可以做这个丑陋的事情:
or, if you are using VelocityTools, you can do this ugly thing: