首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 其他相关 >

DWR 从session中掏出数据

2012-11-13 
DWR 从session中取出数据需要导入的类有:import org.directwebremoting.WebContextFactory?import javax.

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

热点排行