基于Spring,Struts2,Hibernate整合,
jsp页面导出(下载)excel文件的简单应用
1)本例不采用Java任何导出excel文件常用的poi或者jxl 等第三方jar包,仅仅基于I/O,做一个最简单的ssh整合excel文件导出(下载)。
2)2-3为功能展示
a.主页展示
·导出当前页到excel文件
·导出全部到excel文件
b.详细信息展示(下属子地名)
·导出当前页到excel文件
3)4-7为ssh整合相关xml配置
a.Spring相关xml配置
b.Hibernate相关xml配置
c.Struts2相关xml配置
d.web.xml配置(Spring容器的实例化,struts过滤器的配置)
3)8-14为源代码
a.action代码
b.service代码(导出excel文件具体实现,包括下载文件名中文乱码问题,详见代码注释)
c.dao代码
4)15-17为jsp页面
a.index.jsp(主页)
b.list.jsp(列表显示)
c.detail.jsp(详细信息-子地址列表显示)