当前位置:首页
> Struts
struts2获取HttpServletRequest
在 struts1.x Action 类的 execute方法中,有四个参数,其中两个就是 response和 request。而在 Struts2中,并没有任何参数,因此,就不能简单地从 execute方法获得 HttpServletResponse或 HttpServletRequest对象了。...