81,092
社区成员
发帖
与我相关
我的任务
分享
<%@ page language = "java"
import = " java.util.*,
org.apache.poi.hssf.usermodel.HSSFWorkbook,
org.apache.poi.hssf.usermodel.HSSFSheet,
org.apache.poi.hssf.usermodel.HSSFRow,org.apache.poi.hssf.usermodel.HSSFCell " %>
<%
response.setContentType( " APPLICATION/OCTET-STREAM " );
response.setHeader( " Content-Disposition " ,
" attachment; filename=xujiawei.xls" );
response.setCharacterEncoding("GBK");
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet( " sheet1 " );
wb.write(response.getOutputStream());
response.getOutputStream().flush();
response.getOutputStream().close();
%>
Illegal access: this web application instance has been stopped already. Could not load net.sf.ehcache.store.compound.CompoundStore$KeySet. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.