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] s:text help on formatting output
Date Thu, 12 Apr 2007 00:47:27 GMT
--- Harring Figueiredo <harringf@gmail.com> wrote:
> [...]

Dude, just type it in.

In my properties file:

format.money={0,number,currency}

On my JSP:

<s:text name="format.money">
  <s:param name="value" value="123" />
</s:text>

Rendered output:

$123.00

Switch locale to Chinese (zh_CN, it's the only other
language I know, sorry), rendered output:

&#65509;123.00

I simply don't know what else to tell you.

Wait, that isn't the right symbol. But you get the
point... ar_SA renders as:

&#1585;.&#1587;.&#8207; 123

d.



       
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

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


Mime
View raw message