Question

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?

Was it helpful?

Solution

Use c.

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

${userId?c}

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top