`
thinktothings
  • 浏览: 767115 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Action得到HttpServletRequestt,HttpServletResponse

 
阅读更多

 

		ActionContext ctx = ActionContext.getContext();
		HttpServletRequest request = (HttpServletRequest) ctx
				.get(ServletActionContext.HTTP_REQUEST);


		ActionContext ctx = ActionContext.getContext();
		HttpServletReponse response= (HttpServletResponse) ctx
				.get(ServletActionContext.HTTP_RESPONSE);

 在Struts2中得到

HttpServletRequest对象             HttpServletResponse 对象
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics