Format the amount into the format we want

Method: to achieve through the label:

The page introduces:

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<td id="price0"><fmt:formatNumber value="${var.proInfo.price }" pattern="#,#00.00" /></td>


Type of effect to two decimal places... Such as: 2000.00


Methods: two through Java code to type:


To be continued. . . .

Posted by Adonis at December 03, 2013 - 10:37 AM