struts2中获取目录的真实路径

来源:互联网 发布:公司屏蔽淘宝网 编辑:程序博客网 时间:2024/06/09 16:43
String templatePath = ServletActionContext.getServletContext().getRealPath("/template/identificationtemplate");
String paperPath = ServletActionContext.getServletContext().getRealPath("/template/identificationpaper");
0 0