显示项目根目录

ServletContext sc = (ServletContext) ActionContext.getContext().get(ServletActionContext.SERVLET_CONTEXT);
String path = sc.getRealPath("/model");
posted @ 2010-09-01 18:20  七郎  Views(213)  Comments(0Edit  收藏  举报