카테고리 없음
dwr request , session 가져오기
[czar]
2010. 1. 12. 10:18
org.directwebremoting.WebContext
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSession;
import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;
public void foo() throws Exception{
WebContext wctx = WebContextFactory.get();
HttpServletRequest request = wctx.getHttpServletRequest();
......
HttpSession session = request.getSession();
}