Question

I have found pretty interesting thing Using java+spring+freemarker

From java controller I pass '-1' as Integer value. From time to time in freemarker template after ${value} I am getting '1-' instead of '-1' This happens randomly from time to time.

Any ideas why this happens? Freemarker bug?

Was it helpful?

Solution

Try ${value?c} that will format the number as a computer readable number.

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