--- "Hartrich, James CTR USTRANSCOM J6" wrote:
> Has anyone successfully formatted a number 5557777 into 555-7777.
>
> MyAction.properties: format.telephone={0,number,###-####}
>
> My.jsp: <s:action name="myaction"/>
> <s:text name="format.telephone">
> <s:param name="value" value="myTeleValue"/>
> </s:text>
>
> The only output rendered to the jsp page after numerous attempts is the
> string "format.telephone".
I'm not aware that you can format numbers like that. AFAIK the number
formatting follows the decimal formatting Java rules [1] where things like
the "-" character refer to the default negative number prefix.
Phone numbers aren't numbers (add two together?!), they're strings. Or should
be; if they're not you may want to reconsider.
Dave
[1] http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]