session.setAttribute("id", new Integer(id))。。。(Integer)session.getAttribute("id")).intValue()
JSP1中设置session("id")值
int id = 10;
session.setAttribute("id", new Integer(id));
JSP2中取session("id")值
int id;
id = ((Integer)session.getAttribute("id")).intValue();
抛出java.lang.ClassCastException异常。为什么?如何解决?
谢!谢!谢!
问题点数:0、回复次数:0Top
相关问题
- 关于 setAttribute(),getAttribute() 的问题
- document.all 和 getAttribute?
- jsp:setAttribute 问题:
- int to integer???
- 错在哪里?(getAttribute)
- integer问题
- 有关setAttribute的问题
- Integer test(Integer i)=Int test(Int i) ??
- function _TESTCOM(address:byte;portno:integer):integer;stdcall;export;
- function _TESTCOM(address:byte;portno:integer):integer;stdcall;export;




