第1个回答 2011-07-29
其一:在servlet中将int值用:request.setAttribute('intvalue',11);保存
其二:在jsp页面中,取值String str = request.getAttribute("intvalue");
int intvalue= Integer.parseInt(str);
第2个回答 推荐于2016-09-04
request.setAttribute("intvalue","111");
String xx = request.getAttribute("intvalue");
int xxint = Integer.valueOf(xx);本回答被提问者采纳
第3个回答 2011-07-28
1,可以用struts标签取,
2,直接就request.getParameter("XX");这个取到Sring,然后,再转型就行了,
3,用${name}
第4个回答 2011-07-30
request.setAttribute("int","111");
String xx = request.getAttribute("int");
int xxint = Integer.valueOf(xx);
第5个回答 2011-07-29
我只想到Session,具体的也很模糊。