摘要: 虽然Struts2提供了ActionContext来访问Servlet API,但这必经不能直接获得Servlet API实例,为此Struts2提供了如下接口:ServletContextAware:实现该接口的Action可以直接访问用户请求的ServletContext实例ServletRequestAware:实现该接口的Action可以直接访问用户请求的HttpServletRequest实例ServletResponseAware:实现该接口的Action可以直接访问用户请求的HttpServletResponse实例为了直接访问Servlet API,struts2提供了一个Se 阅读全文
posted @ 2013-08-15 23:24 黎明前的黑夜 阅读(217) 评论(0) 推荐(0) 编辑