Hello i have such template:

......
<body onload='setInterval(function(){refresh()}, ${refreshPeriod} ); setClientTime();'>
<p>UserId: ${userId}</p>
</body>
</html>

when i generate my template and put userId like 4195578878989842599 it display like 4 195 578 878 989 842 599, is it possible to fix it?

有帮助吗?

解决方案

Use c.

This built-in converts a number to string for a "computer language" as opposed to for human audience.

${userId?c}

其他提示

This can be set globally using the FreeMarker configuration. See manual entry under Settings - setNumberFormat

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top