Folks:
It is clear that I MUST be doing something wrong, but I have tried all the
options with the s:text to format a number.
Here is what I have tried:
lis:text name=currencys:param name=money
value=%{#session.Account.balance}//s:text/li
lis:text name=format.moneys:param name=money
Harring Figueiredo wrote:
Folks:
It is clear that I MUST be doing something wrong, but I have tried all the
options with the s:text to format a number.
Here is what I have tried:
lis:text name=currencys:param name=money
value=%{#session.Account.balance}//s:text/li
lis:text
Hi Laurie,
Thanks for the response. I tried what you suggested, and actually did not
get a value back (empty). Where should I set the resource string? (I
thought it was _smart_ enough to get from the Locale.
Thank you.
On 4/11/07, Laurie Harper [EMAIL PROTECTED] wrote:
Harring Figueiredo
Another thing is that your example, according to the example provided on the
web site, is not correct either.
s:text name=format.money
s:param name=value
value=%{#session.Account.balance}/
/s:text
format.money should actually be one of the values { 0, number, currency
--- Harring Figueiredo [EMAIL PROTECTED] 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
DAVE!
THANK YOU SO MUCH FOR THIS LITTLE DETAIL.
It would be nice if the documentation was as CLEAR as your email. (i.e.
where to the format.money, rather then
where: format.money={0,number,currency}.
To me, coming from Unix world, means a set in which the possible values are
inside the
--- Harring Figueiredo [EMAIL PROTECTED] wrote:
It would be nice if the documentation was as CLEAR
as your email. (i.e. where to the format.money,
rather then
where: format.money={0,number,currency}.
I update the s:text.../ docs to (hopefully!) better
reflect this.
Really, the
7 matches
Mail list logo