数据库字段price 设为 vchar 为 isnullor String p = request.getParameter("price");
double price = 0.0;
if (p.length()>1)
price = Double.parseDouble(p);
double price = 0.0;
if (p.length()>1)
price = Double.parseDouble(p);
还有,你后面这个if(p.length(0>1)
但是现在是length=0呀
改怎么办?