会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
y.lucia
博客园
首页
新随笔
联系
管理
订阅
2013年9月13日
velocity无法获取spring mvc的session值
摘要: 网上搜了一下有几种答案,但没有试过1.spring中的httpsession改为context中的session,就可以获得HttpSession session = ServletActionContext. getRequest().getSession();2.velocity配置中加入 ,将exposeSessionAttribute参数设为true3.在 tools.xml 里面加上:
阅读全文
posted @ 2013-09-13 10:58 y.lucia
阅读(2640)
评论(0)
推荐(0)
编辑
公告