求各位大神帮助一下咯。。。。
java.io.FileNotFoundException: input.xls (系统找不到指定的文件。)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at tomysql.excel.addCustomerAssign(excel.java:18)
at tomysql.tomysqlservlet.doGet(tomysqlservlet.java:29)
java.lang.NullPointerException
at tomysql.excel.addCustomerAssign(excel.java:54)
at tomysql.tomysqlservlet.doGet(tomysqlservlet.java:29)
at tomysql.tomysqlservlet.doPost(tomysqlservlet.java:43)
servlet代码:
into in = new into();
excel ex = new excel();
String path = request.getParameter("excel");
File file = new File(path);
List ls = ex.addCustomerAssign(file);
Iterator iter = ls.iterator();
F:\MyJava\j2ee\workspace\test\src\tomysql\input.xls
本回答被提问者和网友采纳