`
liuwei1981
  • 浏览: 752624 次
  • 性别: Icon_minigender_1
  • 来自: 太原
博客专栏
F8258633-f7e0-30b8-bd3a-a0836a5f4de5
Java编程Step-by...
浏览量:156173
社区版块
存档分类
最新评论

DWR 从session中取出数据

阅读更多

需要导入的类有:

import org.directwebremoting.WebContextFactory;

 

import javax.servlet.http.*;

import javax.servlet.*;

 

import org.directwebremoting.WebContextFactory;

import javax.servlet.http.*;
import javax.servlet.*;

try {
		 HttpSession session = WebContextFactory.get().getSession();
		Customer c = (Customer) session.getAttribute(com.core.configuration.Configuration.SESSION_CUSTOMER);
		
		 log.info("ssss" + c.getName());
		ServletContext application = session.getServletContext();
		} catch (Exception e) {
		 e.printStackTrace();
				}
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics