Ida88
06-11-2010, 16:23
Ciao!
sto realizzando un'applicazione web, che deve leggere dei file .xls.
Per fare questo ho importato nel mio progetto jxl.jar (da eclipse: Configure Build path - nella sheda Libraries ho aggiunto il jar).
La pagina jsp è la seguente:
<%@page import="jxl.*"%>
...
<%
Workbook workbook = Workbook.getWorkbook(new File("home/ida/file.xls"));
Sheet sheet = workbook.getSheet(0);
Cell a1 = sheet.getCell(0,0);
Cell b2 = sheet.getCell(1,1);
Cell c2 = sheet.getCell(2,1);
String stringa1 = a1.getContents();
String stringb2 = b2.getContents();
String stringc2 = c2.getContents();
%>
Quando vado ad eseguire mi da questo errore:
HTTP Status 500-
...
Workbook cannot be resolved to a type
Ho provato a fare un refresh ma non è servito.
Sapreste dirmi perchè questo errore? O suggerirmi qualche link utile?
Grazie!
sto realizzando un'applicazione web, che deve leggere dei file .xls.
Per fare questo ho importato nel mio progetto jxl.jar (da eclipse: Configure Build path - nella sheda Libraries ho aggiunto il jar).
La pagina jsp è la seguente:
<%@page import="jxl.*"%>
...
<%
Workbook workbook = Workbook.getWorkbook(new File("home/ida/file.xls"));
Sheet sheet = workbook.getSheet(0);
Cell a1 = sheet.getCell(0,0);
Cell b2 = sheet.getCell(1,1);
Cell c2 = sheet.getCell(2,1);
String stringa1 = a1.getContents();
String stringb2 = b2.getContents();
String stringc2 = c2.getContents();
%>
Quando vado ad eseguire mi da questo errore:
HTTP Status 500-
...
Workbook cannot be resolved to a type
Ho provato a fare un refresh ma non è servito.
Sapreste dirmi perchè questo errore? O suggerirmi qualche link utile?
Grazie!