struts2 - Struts 2 getText does not format with atttribute -
i know, in struts 2 when use struts 2 tag , format in https://struts.apache.org/docs/formatting-dates-and-numbers.html did not output of formatting. value blank.
below code
<s:set var="valueformat" value="%{gettext('{0,number,#,##0.00}',{#attribute.value})}"/>,
but when type value "1234556" output formatted. below code
<s:set var="valueformat" value="%{gettext('{0,number,#,##0.00}',{1234556})}"/>,
Comments
Post a Comment