struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject RE: [S2] How to apply formatting to s:property?
Date Wed, 01 Aug 2007 19:55:34 GMT
--- 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


Mime
View raw message