Re: Display BigDecimal Format

2009-03-08 Thread Zoran Avtarovski
I did end up writing a custom type converter, but I really think that¹s overkill. It would be great if there were a way to specify the BigDecmal scale in the struts properties, or xwork-conversion properties. Am I off the mark here or is it worthwhile doing something and submitting as a patch? Z.

Re: Display BigDecimal Format

2009-03-05 Thread Zoran Avtarovski
Thanks Seshagari, But I¹d have to do this in every action and on every form. I might just write a customConverter for BigDecimals and place it in my xwork properties file. Z. > > Hi > > Follows anapest code, in your action class. Me be resolved your problem. > // Round two decimal function

RE: Display BigDecimal Format

2009-03-05 Thread Seshagiri V
Hi Follows anapest code, in your action class. Me be resolved your problem. // Round two decimal function double roundTwoDecimals(double amout) { DecimalFormat twoCurrencyDecimalForm = new DecimalFormat(getText("#.##")); return Double.valueOf(twoCurrencyDecimalForm.format(a