troubleshooting Question

freemarker commas are annoying

Avatar of HappyEngineer
HappyEngineer asked on
Java
1 Comment1 Solution466 ViewsLast Modified:
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?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros