HappyEngineer
asked on
freemarker commas are annoying
I know that in freemarker I can output numeric values without commas with something like:
${message.id?string("#")}
However, there are numerous times that I've been bitten by this stupid comma thing. Countless times I'll do something like:
<a href="/someapp/blah?msgId= ${msg.id}& userId=${u ser.id}">$ {user.user name}</a>
That works fine as long as the various IDs are small, but then I get errors weeks or months later when the ID gets larger than 999.
I just want to disable the comma insertion entirely for all freemarker numeric output. Can I do that?
${message.id?string("#")}
However, there are numerous times that I've been bitten by this stupid comma thing. Countless times I'll do something like:
<a href="/someapp/blah?msgId=
That works fine as long as the various IDs are small, but then I get errors weeks or months later when the ID gets larger than 999.
I just want to disable the comma insertion entirely for all freemarker numeric output. Can I do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.