Dave:

So, is there no way to define a global format
for currency?

Thanks,
        Neil 

--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.

-----Original Message-----
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 01, 2007 2:56 PM
To: Struts Users Mailing List
Subject: RE: [S2] How to apply formatting to s:property?

--- Neil Aggarwal <[EMAIL PROTECTED]> wrote:
> I moved it to a struts.properties file:
> 
> format.money={0,number,currency}
> 
> with no change to the output.
> 
> Also, according to this page, I should be able
> to put it in either struts.xml or struts.properties:
> 
>
http://struts.apache.org/2.x/docs/constant-configuration.html
> 
> Any ideas?

Yes.

Put it in a properties file used by an *action*, not
an *S2 configuration file*. See, the point of putting
a format into a properties file is so it can be
locale-specific. AFAIK config files are not
localization files.

d.



       
____________________________________________________________________________
________
Choose the right car based on your needs.  Check out Yahoo! Autos new Car
Finder tool.
http://autos.yahoo.com/carfinder/

---------------------------------------------------------------------
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