JPS JSTL formatting a number

by Bruce on August 2, 2010

http://www.jsptutorial.net/formatting-number-with-jstl-fmtformatnumber.aspx

An example:

<fmt:formatNumber value="${ae.minAge}"
                   type="number"
      minFractionDigits="0"
                    var="formattedMinAge"/>
<form:input type="text"
            path="minAge"
           value="${formattedMinAge}">

Leave a Comment

Previous post:

Next post: