My guess is that your local makes the formatted value 5,0%
, and not 5.0%
. And the arguments
attribute of the spring message tag expects a comma-separated list of arguments.
Try passing no delimiter at all, or a fake delimiter:
<spring:message code="property.code" arguments="${discount}" argumentSeparator="${null}" />
or
<spring:message code="property.code" arguments="${discount}" argumentSeparator="" />
or
<spring:message code="property.code" arguments="${discount}" argumentSeparator="fake" />