String file = ServletActionContext.getServletContext().getRealPath("/WebRoot/excel");
FileOutputStream out = new FileOutputStream(file+"/client.xls");
wb.write(out);
out.close();
HTTP Status 500 - E:\apache-tomcat-6.0.37\webapps\logistics\WebRoot\excel\client.xls (系统找不到指定的路径。)type Exception reportmessage E:\apache-tomcat-6.0.37\webapps\logistics\WebRoot\excel\client.xls (系统找不到指定的路径。)description The server encountered an internal error that prevented it from fulfilling this request.exceptionjava.io.FileNotFoundException: E:\apache-tomcat-6.0.37\webapps\logistics\WebRoot\excel\client.xls (系统找不到指定的路径。)
FileOutputStream out = new FileOutputStream(file+"/client.xls");
wb.write(out);
out.close();
HTTP Status 500 - E:\apache-tomcat-6.0.37\webapps\logistics\WebRoot\excel\client.xls (系统找不到指定的路径。)type Exception reportmessage E:\apache-tomcat-6.0.37\webapps\logistics\WebRoot\excel\client.xls (系统找不到指定的路径。)description The server encountered an internal error that prevented it from fulfilling this request.exceptionjava.io.FileNotFoundException: E:\apache-tomcat-6.0.37\webapps\logistics\WebRoot\excel\client.xls (系统找不到指定的路径。)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货