Link to home
Start Free TrialLog in
Avatar of HappyEngineer
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=${user.id}">${user.username}</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?
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial