Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 50970 invoked from network); 11 Apr 2007 22:35:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2007 22:35:40 -0000 Received: (qmail 61165 invoked by uid 500); 11 Apr 2007 22:35:37 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 61135 invoked by uid 500); 11 Apr 2007 22:35:37 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 61124 invoked by uid 99); 11 Apr 2007 22:35:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 15:35:37 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jak-struts-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 15:35:30 -0700 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1HblP4-0004pe-HF for user@struts.apache.org; Thu, 12 Apr 2007 00:35:02 +0200 Received: from bas19-toronto12-1167854826.dsl.bell.ca ([69.156.12.234]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Apr 2007 00:35:02 +0200 Received: from laurie by bas19-toronto12-1167854826.dsl.bell.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Apr 2007 00:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: user@struts.apache.org From: Laurie Harper Subject: Re: [S2] s:text help on formatting output Date: Wed, 11 Apr 2007 18:22:52 -0400 Lines: 72 Message-ID: References: <275f06ee0704110743h7c9a2ec3h182ccb44165c1c57@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bas19-toronto12-1167854826.dsl.bell.ca User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) In-Reply-To: <275f06ee0704110743h7c9a2ec3h182ccb44165c1c57@mail.gmail.com> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Harring Figueiredo wrote: > Folks: > > It is clear that I MUST be doing something wrong, but I have tried all the > options with the to format a number. > > Here is what I have tried: >
  • value="%{#session.Account.balance}"/>
  • >
  • value="%{#session.Account.balance}"/>
  • >
  • >
  • >
  • >
  • >
  • 1111.199999999 > >
  • >
  • 1111.199999999 >
  • >
  • > > > And Here is the Corresponding output on the page: > currency > format.money > currency > format.money > currency > currency > currency > currency > 1003.9999999999999 > > What in the world ami I missing? ( I am wither misreading the example, or > it is clearly not correct. I hope it is the former) > > I followed the example on this page: > http://struts.apache.org/2.x/docs/text.html > > Other example > > value="myMoneyValue"/> > > where > > format.money={0,number,currency} > > > Thank you in advance for any input. > > hf > None of your attempts actually follows the example, though; you're using
    From your sample output it looks like you haven't set up the format.money or currency resource strings, either, which you will need to do. L. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org