--- prasad kumar <[EMAIL PROTECTED]> wrote:
> String newLateExtraAmount =
>     new Double(Double.parseDouble(model.getAmount())
         + lateExtraAmount).toString().
>  
> model.setAmount(String.valueOf(newLateExtraAmount));

Why do you do a String.valueOf on a String?

> but the problem with the above code is whenever
> i am going to that screen the amount is
incrementing.

It's still not clear to me exactly what you are trying
to do. Someone else mentioned keeping it in session;
that may work fine. You may also want to consider
representing it in your data model somehow.

Are you using doubles to do real-world floating-point
monetary arithmetic?

d.



       
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to