标签:gb2312 log tac response 动态表 net 显示 ati nic
1、jsp生成word文件,直接改动jsp格式:
<%@ page contentType="application/vnd.ms-word;charset=GB2312"%> <%@ pagepageEncoding="GB2312"%> <% String fileName ="word.doc"; byte[] bt =fileName.getBytes("GB2312"); String unicoStr = new String(bt, "ISO-8859-1"); response.setHeader("Content-disposition","attachment; filename=" +unicoStr); %>
建一个表框架,事实上就是表头,列出表的第一行,显示细表的数据项名称
<table width="200" border="1" id="myData"> <tr> <td><input type="button" value="添加" onclick="add_row()"></td> <td>型号</td> <td>类型</td> <td>材料</td> </tr> </table>
标签:gb2312 log tac response 动态表 net 显示 ati nic
原文地址:http://www.cnblogs.com/ycfenxi/p/6722408.html