Did you try to put the () in '' as in
<bean:write name="unidade" property="foneCom1" format ="'('###')'###'-'####"/>
just a guess.. :)
On Aug 3, 2004, at 2:03 PM, Marcelo Epstein wrote:
Hi,
This is not working.
<bean:write name="unidade" property="foneCom1" format ="(###)###'-'####"/>
foneCom1 is a String.
Marcelo
----- Original Message ----- From: "Jim Barrows" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, August 03, 2004 4:10 PM Subject: RE: Format Phone numbers using bean:write
-----Original Message----- From: Marcelo Epstein [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 11:35 AM To: Struts Users Mailing List Subject: Format Phone numbers using bean:write
Hi all,
Is it possible to format a phone number stored in a String using <bean:write> tag ?
I can format dates, but not Strings.
(###)###'-'#### for a us number might just do it......
Thanks in advance, Marcelo
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]