tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <>
Subject Formatting a phone number with JSTL?
Date Fri, 17 Jun 2005 00:46:52 GMT
I'm trying to format a 10 digit number stored as a String in my bean, with
dashes after the 3rd and 6th digit.

   <fmt:formatNumber value="${phone.number}" pattern="????" />

The only examples I can find are dates and currency/amounts.  Is this
possible with JSTL?  Is there documentation that says what is legal to put
in a 'pattern'?

(And further, how expensive is it?  I can do the String manipulation when I
populate the bean if that makes more sense.)

Wendy Smoak

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message