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?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top