jsp页面table导出为excel
jsp页面如下:
........
<html>
<head>
<title><bean:message key="zlhs_tggygz.jsp.title"/></title>
</head>
<div align="right"><a href="yfcMain.do?u_code=<bean:write name="UserBean" property="u_code"/>" title=<bean:message key="zl_xmxxck.jsp.return"/>>
<img src="pic/icon_home.gif" border=0 ></a></div>
<body>
<a href="zlhs_tggygz_add.jsp"><bean:message key="common.xjxx"/></a>
<hr class=hrOne>
<hbjzl:zlhs_searchtag tableName="ZlHsTggygz" action="zlhs_tggygz.jsp" />
<hbjzl:pageTag setting_linage="<%=MaxPage %>" id="aaa" name="tggygzlist"
url="zlhs_tggygz.jsp" arrange="" manner="select">
<table id="PrintA" class=tableCommonStyle width=100% cellpadding=3 cellspacing=1 border=0>
<tr>
<td width="5%" scope="col" class=forumColorOne align="center"><bean:message key="zlhs_tgssccgz.jsp.xh"/></td>
<td width="6%" scope="col" class=forumColorOne align="center"><bean:message key="zlhs_wsclc.jsp.ssqx"/></td>
<td width="12%" scope="col" class=forumColorOne align="center"><bean:message key="common.qymc"/></td>
<td width="12%" scope="col" class=forumColorOne align="center"><bean:message key="common.gcmc"/></td>
<td width="15%" scope="col" class=forumColorOne align="center"><bean:message key="zlhs_tggygz.jsp.gylb"/></td>
<td width="11%" scope="col" class=forumColorOne align="center"><bean:message key="zlhs_tggygz.jsp.gylr"/></td>
<td width="6%" scope="col" class=forumColorOne align="center"><bean:message key="zlhs_tggygz.jsp.gycl"/></td>
<td width="7%" scope="col" class=forumColorOne align="center"><bean:message key="zlhs_tggygz.jsp.ygypfl"/></td>
<td width="8%" scope="col" class=forumColorOne align="center"><bean:message key="zlhs_tggygz.jsp.gzhgypfl"/></td>
<td width="6%" scope="col" class=forumColorOne align="center"><bean:message key="zlhs_tgssccgz.jsp.jpl"/></td>
<td width="5%" scope="col" class=forumColorOne align="center"><bean:message key="common.ht"/></td>
<td width="8%" scope="col" class=forumColorOne align="center"><bean:message key="zlhs.jsp.operate"/></td>
</tr>
<logic:empty name="tggygzlist">
<% request.getSession().removeAttribute("tggygzlist"); %>
</logic:empty>
<logic:present name="tggygzlist" scope="session">
<logic:iterate id="ppp" name="aaa">
<tr>
<td class=forumColorTwo align="center"><bean:write name="ppp" property="qydm" /></td>
<td class=forumColorTwo align="center"><bean:write name="ppp" property