java - Prevent default formatting (comma insertion) of long argument in s:message tag -
i have jsp in use spring s:message tag
<s:message code="application.success" arguments="${applicationrefid}" />
applicationrefid long variable added model.
in resource bundle, have defined message code quite regularly as
application.success=application {0} submitted
but results in
application 74,311 submitted
here long value formatted commas. have 2 questions - why formatting happen, default, , how can prevent it?
as far know can either
- convert
applicationrefid
string before passing messagetag or apply formatting in resource bundle
application.success=application {0, number, #} submitted
Comments
Post a Comment