Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 88461 invoked from network); 5 Mar 2009 10:40:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2009 10:40:25 -0000 Received: (qmail 10986 invoked by uid 500); 5 Mar 2009 10:40:13 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 10960 invoked by uid 500); 5 Mar 2009 10:40:13 -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 10949 invoked by uid 99); 5 Mar 2009 10:40:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 02:40:13 -0800 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=DNS_FROM_RFC_BOGUSMX X-Spam-Check-By: apache.org Received-SPF: unknown (nike.apache.org: error in processing during lookup of seshagiriv@kensium.com) Received: from [209.85.142.191] (HELO ti-out-0910.google.com) (209.85.142.191) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 10:40:01 +0000 Received: by ti-out-0910.google.com with SMTP id a21so3730467tia.5 for ; Thu, 05 Mar 2009 02:39:37 -0800 (PST) Received: by 10.110.42.1 with SMTP id p1mr1601748tip.18.1236249577535; Thu, 05 Mar 2009 02:39:37 -0800 (PST) Received: from KSPL150 ([220.225.239.221]) by mx.google.com with ESMTPS id 25sm193299tif.32.2009.03.05.02.39.35 (version=SSLv3 cipher=RC4-MD5); Thu, 05 Mar 2009 02:39:36 -0800 (PST) Message-ID: <49afabe8.19066e0a.36b1.5d7b@mx.google.com> From: "Seshagiri V" To: "'Struts Users Mailing List'" Subject: RE: Display BigDecimal Format Date: Thu, 5 Mar 2009 16:09:36 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 In-Reply-To: thread-index: Acmde8PmApHiIglvEd6JtwANkyympAAAkjdw X-Virus-Checked: Checked by ClamAV on apache.org Hi Follows anapest code, in your action class. Me be resolved your = problem. // Round two decimal function double roundTwoDecimals(double amout) { DecimalFormat twoCurrencyDecimalForm =3D new DecimalFormat(getText("#.##")); return Double.valueOf(twoCurrencyDecimalForm.format(amout)); } Thank you, Seshagiri V seshagiriv@kensium.com.=20 =20 US Main: 877 KENSIUM (536.7486) US Fax: 312.242.3029 =20 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 =20 Confidentiality Note: ----------------------------- The information contained in this e-mail is strictly confidential and = for the intended use of the addressee only. Any disclosure, use or copying = of the information by anyone other than the intended recipient is = prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and securely discard this message. =20 =20 -----Original Message----- From: Zoran Avtarovski [mailto:zoran@sparecreative.com]=20 Sent: Thursday, March 05, 2009 3:49 PM To: Struts Users Mailing List Subject: Display BigDecimal Format Our forms have some currency and and we need to display to 2 decimal = points when the data is prepopulated. At the moment is displays as a single decimal point. I could specify all = the relevant fields in a package.properties file but I=B9d like to do it = across the board for big decimals. Do I have to create a custom type converter or is there a property I = could set. Z. No virus found in this incoming message. Checked by AVG - www.avg.com=20 Version: 8.0.237 / Virus Database: 270.11.8/1984 - Release Date: = 03/04/09 19:17:00 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org