1.在后台存入session:

DoradoContext context = DoradoContext.getCurrent();
context.setAttribute(DoradoContext.SESSION,"key", value);

 

2.在后台取出session
String code =(String)context.getAttribute(DoradoContext.SESSION,"key");

 

3.在js中的存入
DoradoContext.getCurrent().setAttribute(DoradoContext.SESSION, "key", value);

 

4.在js中的取出
${session.getAttribute('SessionUserInfo').pressLoginDate}//此处存入的是一个实体对象

或${session.getAttribute('key')}

 

 

posted on 2015-05-13 23:25  Angel_baby  阅读(379)  评论(0编辑  收藏  举报