ServletContext sc = (ServletContext) ActionContext.getContext().get(ServletActionContext.SERVLET_CONTEXT);
String path = sc.getRealPath("/model");

相关文章: