please help me ,how i can do it : read excel file on client side
.....
......
<%!
public int readSheets()
{
int sheet_count=0;
try
{
String setLegalPath = getIllegalPath.replace("\\", "/");
FileInputStream fs = new FileInputStream(new File("c:/test.xls"));
WorkbookSettings ws = null;
Workbook workbook = null;
Sheet s = null;
ws = new WorkbookSettings();
workbook = Workbook.getWorkbook(fs, ws);
sheet_count = workbook.getSheets().length;
s = workbook.getSheet(0);
}
catch ( Exception ex ) {
}
return sheet_count;
}
%>
........
use
sheet count : <%=readSheets()%>
....
it work but only on server side