poi ,Struts2 导出Excel运用(三)
2011-02-20 18:13
337 查看
关于 改进的地方。原博客的地址
http://cjmiou.javaeye.com/blog/643414;
主要是在 上一篇文章中 poi ,Struts2 导出Excel运用(二)
的[/b]Service[/b]实现类[/b]MemberToExcelServiceImpl[/b] :
加上这一句
//下面是删除 poi的导出excel产生的临时文件
new Thread(new Runnable() {
public void run() {
try {
Thread.sleep(7000);//7秒钟
} catch (InterruptedException e) {
e.printStackTrace();
}
fileRandom.delete();
}
}).start();
删除导出Excel时 产生的多余的excel文件。
具体如何产生的 上面应用引用的原blog 说的清楚。
http://cjmiou.javaeye.com/blog/643414;
主要是在 上一篇文章中 poi ,Struts2 导出Excel运用(二)
的[/b]Service[/b]实现类[/b]MemberToExcelServiceImpl[/b] :
加上这一句
//下面是删除 poi的导出excel产生的临时文件
new Thread(new Runnable() {
public void run() {
try {
Thread.sleep(7000);//7秒钟
} catch (InterruptedException e) {
e.printStackTrace();
}
fileRandom.delete();
}
}).start();
删除导出Excel时 产生的多余的excel文件。
具体如何产生的 上面应用引用的原blog 说的清楚。
相关文章推荐
- poi ,Struts2 导出Excel运用(二)
- poi ,Struts2 导出Excel运用(一)
- Struts2 POI 导入导出Excel数据
- 使用struts2和poi导出excel文档
- struts2中利用POI导出Excel文档并下载
- Struts2导出Excel(poi)步骤及问题汇总(二) 下载
- 基于struts2、spring、ibatis、poi的案例,将数据导出致Excel中
- Struts2 POI实现导出Excel功能
- struts2 poi导出excel实例代码下载
- struts2 poi 把数据导出到excel
- Struts2 poi导出excel
- struts2整合poi导出excel文件名乱码或不显示解决办法
- Struts2 POI导出Excel 基本思路解析及相关示例代码
- struts2结合poi-3.7实现数据导出为excel
- struts2结合poi-3.7实现数据导出为excel
- struts2利用poi导出excel文件
- struts2结合poi-3.7实现数据导出为excel
- struts2结合poi-3.7实现数据导出为excel修订版
- struts2结合poi导出excel