Re: Formatting in extended theme using Freemarker

2009-09-12 Thread musomesa
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

RE: Formatting in extended theme using Freemarker

2009-09-12 Thread ashwin ala
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

RE: Formatting in extended theme using Freemarker

2009-09-12 Thread Martin Gainty
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

Re: Formatting in extended theme using Freemarker

2009-09-12 Thread Paweł Wielgus
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

Formatting in extended theme using Freemarker

2009-09-11 Thread ashwin ala
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