Formatting a phone number with JSTL?

2005-06-16 Thread Wendy Smoak
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

Re: Formatting a phone number with JSTL?

2005-06-16 Thread Woodchuck
hi Wendy, if it helps, i found this javascript that can format phone numbers as it is being typed into the textfield... (the format is customizable... your pattern would be ###-###-) it works rather well in my opinion. = BEGIN JAVASCRIPT FUNCTION =

Re: Formatting a phone number with JSTL?

2005-06-16 Thread Rahul Akolkar
On 6/16/05, Wendy Smoak [EMAIL PROTECTED] wrote: I'm trying to format a 10 digit number stored as a String in my bean, with dashes after the 3rd and 6th digit. Not sure if there is an elegant solution using fmt:formatNumber, since it works off of DecimalFormat, which allows prefixes, suffixes