web之家  

2016年12月17日

摘要: 一、ActionContext在Struts2开发中除了将请求参数自动设置到Action的字段中,往往也需要在Action里直接获取请求(Request)或会话(Session)的一些信息,甚至需要直接对JavaServlet Http的请求(HttpServletRequest)和响应(HttpS 阅读全文
posted @ 2016-12-17 17:07 路修远而求索 阅读(13471) 评论(0) 推荐(1)
 
摘要: Struts2 的Action中取得请求参数值的几种方法 先看GetRequestParameterAction类代码: Java代码 public class GetRequestParameterAction extends ActionSupport { private String book 阅读全文
posted @ 2016-12-17 16:37 路修远而求索 阅读(523) 评论(0) 推荐(0)
 
摘要: 隐式对象 说明 out 转译后对应JspWriter对象,其内部关联一个PringWriter对象 request 转译后对应HttpServletRequest/ServletRequest对象 response 转译后对应HttpServletRespons/ServletResponse对象 阅读全文
posted @ 2016-12-17 15:50 路修远而求索 阅读(2720) 评论(0) 推荐(0)