HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest(); HttpSession session = request.getSession();
相关文章
- 160317(一)、在非action中获取request
- 在springMVC的controller中获取request,response对象的一个方法
- 关于在JSP页面中为什么一定要用${pageContext.request.contextPath}来获取项目路径,而不能用${request.contextPath}?
- struts2在action中获取request、session、application,并传递数据
- Struts2 在Action中获取request、session、servletContext的三种方法
- 9.Struts2在Action中获取request-session-application对象
- struts2 在 Action 或 Interceptor 中获取 web.xml 中配置的
参数 (这是我的第一篇博文,哈哈。) - 用ajax发送请求,action往request放一个string,怎样在ajax的回调函数中取到这个string呢?