double getDAmount = 0.0;
getDAmount = SETMinAmount.creategetMinAmount(out,lCurrencyIDAbstract,strPayerAcctNo,dAmount);
request.setAttribute("getDAmount");这样取为什么会报错
getDAmount = SETMinAmount.creategetMinAmount(out,lCurrencyIDAbstract,strPayerAcctNo,dAmount);
request.setAttribute("getDAmount");这样取为什么会报错
setAttribute(java.lang.String name, java.lang.Object o)
这需要两个参数,你只给一个,当然报错!
取值:getAttribute("key","value");
放值:setAttribute("key","value");
double getDAmount = 0.0;
getDAmount = SETMinAmount.creategetMinAmount(out,lCurrencyIDAbstract,strPayerAcctNo,dAmount);
request.setAttribute("getDAmount", getDAmount);
取的时候:
double getDAmount = (double)request.getAttribute("getDAmount");