异常:The method setAttribute(String, Object) in the type ServletRequest is not applicable for the arguments (String, double)
解决方案:1)右击项目-->properties-->java compiler-->compiler compliance level 设置成1.5以上版本
windows-->preference-->java-->compiler-->设置成1.5以上
2)把数据封装成Double对象
如:Double d = new Double(123.456)