如何用速度替换${}中的令牌
我想用速度替换令牌 ${artifactId} 。但正如您所看到的,它包含在另一个 ${} 块中。 所以速度抛出解析异常。 我的问题是如何处理这个案子?我必须保留 ${jsp.lated.[...].Sample.welcome} 块以供其他用途。
<div class="title">${jsp.related.${artifactId}.Sample.welcome}</div>
I want to replace token ${artifactId} by velocity. But as you could see, it's included in another ${} block.
So velocity throw parse exception.
My question is how to handle this case? I have to remain ${jsp.related.[...].Sample.welcome} block for another usage.
<div class="title">${jsp.related.${artifactId}.Sample.welcome}</div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试:
Try: