首先引包:
import jxl.Workbook;
代码示例:
jxl.Workbook rwb = jxl.Workbook.getWorkbook(new File("C:/Documents and Settings/Administrator/桌面/department.xls"));
jxl.Sheet rs = rwb.getSheet("部门信息"); //sheet名称,也可以getSheet(0)方法取得sheet
String sheetContext = rs.getCell(1, 0).getContents();
ServletActionContext.getRequest().setAttribute("sheetName", sheetContext);
具体操作见:
http://philos.javaeye.com/blog/90802
posted on 2010-03-09 11:22
lucas_y 阅读(147)
评论(0) 编辑 收藏 所属分类:
other