dorado中session

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')}

 

原文地址:https://www.cnblogs.com/hui1107464497/p/4502082.html