struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil Aggarwal" <n...@JAMMConsulting.com>
Subject RE: [S2] How to apply formatting to s:property?
Date Wed, 01 Aug 2007 19:59:59 GMT
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:newton.dave@yahoo.com] 
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 <neil@JAMMConsulting.com> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message