Struts 使用session
2013-06-03 14:44
204 查看
struts使用session 通过
1,Map<String, Object> map=ActionContext.getContext().getSession();
map.put("username", username);推荐使用这种方式
2、ServletActionContext.getRequest().getSession();
1,Map<String, Object> map=ActionContext.getContext().getSession();
map.put("username", username);推荐使用这种方式
2、ServletActionContext.getRequest().getSession();
相关文章推荐
- 初学者很实用:struts中action使用session的2种方式
- 解决了Hibernate+Spring+Struts架构使用OpenSessionInView的问题
- Hibernate/Spring/Struts架构使用OpenSessionInView的问题
- struts request,session的使用
- struts2手动防止数据重复提交,使用struts标签取session中的值
- Struts使用用解耦合的方式获取Session
- Struts第七天--使用request,application,session
- struts 中filter使用控制session
- 【转】jsp Session 在struts 2.0使用
- struts2手动防止数据重复提交,使用struts标签取session中的值
- Struts2.0学习笔记--Session的创建和使用方法
- Hibernate/Spring/Struts架构使用OpenSessionInView的问题
- Hibernate/Spring/Struts架构使用OpenSessionInView的问题
- Hibernate/Spring/Struts架构使用OpenSessionInView的问题
- Struts 2访问Servlet API 使用request,session,application
- CKEditor图片上传实现详细步骤(使用Struts 2)
- 使用myeclipse轻松开发开发struts项目(英文原版)
- Redis应用——使用Redis存储Session
- 使用数据库保存session的方法
- 使用Struts2+Hibernate开发学生信息管理功能