A wired problem

2004-06-10 Thread Zhang, Hong
Hi all, I have a jsp page which gets form data and does update or insert these data into database depending on the button type. But the wired thing is that during run time code was chopped into pieces and each piece was done twice. Then it looks like the whole jsp page was run twice. Does anyone

RE: How to format number

2003-10-07 Thread Zhang, Hong
Try to use java.text.NumberFormat NumberFormat nf= NumberFormat.getInstance(); nf.setMaximumFractionDigits(2); nf.setMinimumFractionDigits(2); Double number = 10/3; String snumber = nf.format(number); -Original Message- From: Lawence [mailto:[EMAIL