读书人

DWR 从session中掏出数据

发布时间: 2012-11-13 10:00:51 作者: rapoo

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();}
?

读书人网 >其他相关

热点推荐