Parse Currency : Parse Number « JSTL « Java Tutorial






<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %><%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<html>
  <head>
  </head>

  <body>
  <fmt:parseNumber var="i" type="currency" value="$123123.123" />
  <c:out value="${i}"  escapeXml="false" />
  </body>
</html>
  Download:  JSTLParseCurrency.zip( 1,224 k)







24.22.Parse Number
24.22.1.Parse Percentage
24.22.2.Parse Number
24.22.3.Parse Integer Only
24.22.4.Parse Currency
24.22.5.Number Format with Pattern