DWR类中获取session

public class TestDWR {
	 public String hello() { 
		 HttpSession  httpSession = WebContextFactory.get().getSession(); 
		 System.out.println(httpSession.getAttribute("yanzhengma"));
		          return  "DWR配置成功!";      
		       }  
}
 

你可能感兴趣的:(DWR)