Create on you class path a properties file celled for example
globalMessages.properties and add the format.money line

Then declare this file in struts.properties
(struts.custom.i18n.resources=globalMessages). Thus, you are able for
every page to format a number like a currency

-----Original Message-----
From: Pascal SEREMES-DAMAL [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 22, 2008 4:03 PM
To: Struts Users Mailing List
Subject: Re: [Formatting data] - Format a number as currency

Thank you John. But How can I manage with the proprty file?

2008/1/22, John Koutros <[EMAIL PROTECTED]>:
>
> You can use the s:text struts tag.
>
> <s:text name="format.money"><s:param value="amount"/></s:text>
>
> Where
>
> format.money = {0,number,#,##0.00} in a property file
>
>
> -----Original Message-----
> From: Pascal SEREMES-DAMAL [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 22, 2008 3:12 AM
> To: Struts Users Mailing List
> Subject: [Formatting data] - Format a number as currency
>
> Hi everyone!!!
>
> I'd like to know if it is possible to format a number into a currency
> with
> the struts taglib.
>
> Thanks.
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to