struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seshagiri V" <>
Subject RE: Display BigDecimal Format
Date Thu, 05 Mar 2009 10:39:36 GMT

Follows  anapest code,  in  your action class. Me be resolved  your problem.
// Round two decimal function
    double roundTwoDecimals(double amout) {
        DecimalFormat twoCurrencyDecimalForm = new
        return Double.valueOf(twoCurrencyDecimalForm.format(amout));

Thank you,
Seshagiri V 
US Main: 877 KENSIUM (536.7486)
US Fax:   312.242.3029
200 S Wacker Dr, Suite 3100
Chicago, IL 60606
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.

-----Original Message-----
From: Zoran Avtarovski [] 
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 file but I¹d 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


No virus found in this incoming message.
Checked by AVG - 
Version: 8.0.237 / Virus Database: 270.11.8/1984 - Release Date: 03/04/09

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message