[转载]Action中得到当前文件路径

String path=ServletActionContext.getRequest().getRealPath("/file"); 
System.out.println("路径是:"+path);
book = Workbook.createWorkbook(new File(path+"/sendStatus.xls"));
 
相关文章
相关标签/搜索