在struts2.0.11.2中可以是使用
ServletActionContext.getServletContext().getRealPath("/");
获取服务器路径。但在struts2.2.1中
ServletActionContext没有getServletContext()方法了。请问struts2.2.1版本该如何获取服务器路径?十分感谢!