需要导入的类有:
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();
}
本文介绍了如何使用Direct Web Remoting库获取用户的会话信息,并从会话中读取特定的Customer对象,同时记录该对象的名字。
4190

被折叠的 条评论
为什么被折叠?



