Parse Number : 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>
    <title>Format Percent</title>
  </head>

  <body>
  <fmt:parseNumber var="i" type="number" value="123.123" />
  <c:out value="${i}"  escapeXml="false" />
  </body>
</html>
  Download:  JSTLParseNumber.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