提示什么错误,accountList是否为空
解决方案 »
- javamail收邮件问题
- SPRING高手进,CSDN中3天无人能解决的问题
- 高分求解Tomcat异灵错误之socket write error
- zk 框架的树形菜单
- Who can help me?
- 一个简单的hibernate 查询
- 求教一个解决方案
- struts、spring、hibernate、jsf、j2me教学录像下载
- 在jbuilder7.0+weblogic6.1下发布 tools||enterprise deployment
- 我要学jsp,已经下载了j2ee1.4,需要一个支持jsp引擎的WEB服务器或jsp引擎!!(急,马上给分)
- 求Jive3.2.9安装方法
- 谁有java的聊天室源码?高分相送
CLASS 中:
Map nameMap = new HashMap();
HttpSession session = request.getSession();
session.setAttribute("accountList", nameMap);
JSP 中:
HttpSession session = request.getSession();
Map jspMap = (Map)session.getAttribute("accountList");如果这样还不行,你在页面输出LOG看一下.
多谢,我解决了,
HttpSession accountSession = request.getSession();
Map jspMap = (Map)accountSession .getAttribute("accountList");1. 我原来没有定义session ,直接调用jsp的内部对象Session.getAttribute("accountList");怎么不行呢
2.还有
HttpSession session = request.getSession();这样定义的话,页面提示:"session is already defined in _jspService"
我觉得这个问题很搞人
呵呵,可能我以前在别的地方程序写错了好了
结帐!