ActionContext.getContext().getSession() 的意义
来源:互联网 发布:python实现二叉树反转 编辑:程序博客网 时间:2024/06/06 09:15
转自:http://lancijk.iteye.com/blog/809522
1:
- ActionContext.getContext().getSession()
这个方法获得的不是HttpSession对象,而是一个Map对象。
要存值进去或者取值需要用以下方法
2:用法
- ActionContext.getContext().getSession().put("validateCode", s);
- ActionContext.getContext().getSession().get("validateCode")
以上方法和session.setAttribute();session.getAttribute();的作用相同,并且可以混用
0 0
- ActionContext.getContext().getSession() 的意义
- request.getsession()和ActionContext.getContext().getSession()的区别
- struts2生成session的方法:ActionContext.getContext().getSession()
- 关于ActionContext.getContext().getSession()返回null
- ActionContext.getContext()的用法
- ActionContext.getContext().getSession().put("user", getUsername()); request.setAttribute("username
- Map<String, Object> session=ActionContext.getContext().getSession()
- ActionContext.getContext()的用法心得
- 关于ActionContext.getContext()的用法
- ActionContext.getContext()的用法心得
- 关于ActionContext.getContext()的用法
- ActionContext.getContext()的基本用法
- ActionContext.getContext()
- 关于ActionContext.getContext()的用法心得
- 关于ActionContext.getContext()的用法心得
- 关于ActionContext.getContext()的用法心得
- 关于ActionContext.getContext()的用法心得
- 关于ActionContext.getContext()的用法心得
- Fedora 22安装后无法找到Realtek无线网卡的解决
- Android基础入门教程——8.3.10 Paint API之—— ColorFilter(颜色过滤器)(2-3)
- 3-1 Point类的构造函数-SDUT
- python装饰器
- 计算机网络之应用层
- ActionContext.getContext().getSession() 的意义
- Oracle数据泵IMPDP导入
- MySQL的MyISAM与INNODB对比
- 第八周 项目三(3)-字符的删除
- broadccastreceiver
- 使用 Google Guava 美化你的 Java 代码:1~4
- 支持向量机:Duality
- PDB Files: What Every Developer Must Know
- 抓了一个数据格式表示位数不够的bug,警示