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.
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
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
3 matches
Mail list logo