tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <j...@wendysmoak.com>
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.)

Thanks,
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message