Using Struts2 Tags to Formatting Numbers

Here you go :

<s:property value="getText('{0,number,#,##0.00}',{profit})"/>

This is how I format numbers in my projects. You can use it with <s:if> to attain what you require.

Leave a Comment