Try these:
double salary = 111.33;
session.setAttribute("salary",new Double(salary));
double anther;
String temp;
temp = session.getAttribute("salary").toString();
anther = Double.parseDouble(temp);First :
turn the object to a String parameter with toString();
Second"
turn the String to a double parameter with Double.parseDouble()
double salary = 111.33;
session.setAttribute("salary",new Double(salary));
double anther;
String temp;
temp = session.getAttribute("salary").toString();
anther = Double.parseDouble(temp);First :
turn the object to a String parameter with toString();
Second"
turn the String to a double parameter with Double.parseDouble()
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货