Re: fmt:formatNumber not formatting on first page load
Stephen Souness <[email protected]>
| Newsgroups | gmane.comp.jakarta.taglibs.user |
|---|---|
| Message-ID | <[email protected]> |
More info: - the value is a string along the lines of : 165000.0 So what I would expect to happen is: - the decimal point and fractional 0 to be truncated - a '$' symbol to be pre-pended - a ',' between the '5' and the first '0' indicating thousands Each time Tomcat is restarted, the first load of the page shows: 165000.0 subsequent page loads give the correct: $165,000 -- Stephen Rahul Akolkar wrote: > On 2/2/06, Stephen Souness <[email protected]> wrote: > >>Hi, >> >>Is it a known issue that the following JSTL will not format the provided >>value on the first loading of the JSP? >> > > <snip/> > > No. This shouldn't happen, I've used the format tags on similar setups. > > -Rahul > > > >><fmt:formatNumber value="${someBean.price}" type="currency" >>currencySymbol="$" maxFractionDigits="0" /> >> >>Subsequent page refreshes seem to work fine. >> >>Server is Tomcat 5.5.12 >>Java version is 1.5.0_06-b05 >> >>I think that I have had a client complain about something similar >>involving JSTL's fmt:formatDate under Tomcat 5.0, Java 1.4.2 >> >> >>-- >>Stephen >>