Try the pattern "#.00".
Chris
-Original Message-
From: ashwin ala
To: user@struts.apache.org
Sent: Sat, Sep 12, 2009 2:30 pm
Subject: RE: Formatting in extended theme using Freemarker
Thank you for the prompt replies.
The BigDecimal rounding some
Thank you for the prompt replies.
The BigDecimal rounding somehow always renders the value with extra zeroes
appended.
I had some success with the freemarker number formatting as suggested by
Martin and am getting close to solving this. I changed text.ftl to now use
this line:
<#if parameters.nameV
ion, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Fri, 11 Sep 2009 20:43:55 -0700
> Subject: Formatting in extended theme using Freemarker
> From: ashwin...@gmail.com
> To: user@struts.apache.org
>
> We currently display BigDecimal values in
Hi,
bigdecimal knows its own rounding,
can't You use it?
Also You can write your own bigdecimal converter,
but it think it won't be necessary in this case.
Best greetings,
Pawel Wielgus.
2009/9/12, ashwin ala :
> We currently display BigDecimal values in tags in our jsps.
> These values need to
We currently display BigDecimal values in tags in our jsps.
These values need to be formatted to display as currency values. Example:
"123.35" should display as "123.35"
I extended the simple theme to create a currency theme using only the
text.ftl template file. I basically copied the text.ft
5 matches
Mail list logo