如何避免jstl中的逗号
How to aviod comma in jstl
我使用格式标签使用以下代码打印十进制值。
<fmt:formatNumber value="${scoreComponentNormalization.rangeEnd}" maxFractionDigits="1" />
我的期望值是:2000
但在打印中:2,000
如何避免comma.Any帮助将不胜感激!!!
在您的 fmt:formatNumber 标签中使用以下内容
groupingUsed="false" />
因为默认情况下它是 true
格式化时不需要在 jstl 中使用分组
groupingUsed: Whether any grouping separated to be used when
formatting the output.
groupingUsed="false"
即<fmt:formatNumber groupingUsed="false" value="${scoreComponentNormalization.rangeEnd}" maxFractionDigits="1" />
我使用格式标签使用以下代码打印十进制值。
<fmt:formatNumber value="${scoreComponentNormalization.rangeEnd}" maxFractionDigits="1" />
我的期望值是:2000
但在打印中:2,000
如何避免comma.Any帮助将不胜感激!!!
在您的 fmt:formatNumber 标签中使用以下内容
groupingUsed="false" />
因为默认情况下它是 true
格式化时不需要在 jstl 中使用分组
groupingUsed: Whether any grouping separated to be used when formatting the output.
groupingUsed="false"
即<fmt:formatNumber groupingUsed="false" value="${scoreComponentNormalization.rangeEnd}" maxFractionDigits="1" />