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:41:38 GMT
--- Neil Aggarwal <neil@JAMMConsulting.com> wrote:
> <s:text name="format.money"><s:param name="value"
> value="12345"/></s:text>
> 
> The outputs format.money instead of $12.345.00 which
> I expected.
> 
> I defined the format in the struts.xml file like
> this:
> 
> <constant name="format.money"
> value="{0,number,currency}" /> 
> 
> Any ideas?

Try putting it in a properties file.

http://struts.apache.org/2.x/docs/text.html

d.



       
____________________________________________________________________________________Ready
for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

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


Mime
View raw message