jsp导出word
来源:互联网 发布:德佳软件 编辑:程序博客网 时间:2024/05/01 09:57
<%@ page contentType="application/vnd.ms-word; charset=utf-8"%><%@ page pageEncoding="utf-8"%> <% String fileName = "jsp导出word.doc"; //对中文文件名编码 //fileName = URLEncoder.encode(fileName, "utf-8"); byte[] yte = fileName.getBytes("GB2312"); String unicoStr = new String(yte, "ISO-8859-1"); response.setHeader("Content-disposition", "attachment; filename=" + unicoStr); %> <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="ProgId" content="Word.Document"> <meta name="Generator" content="Microsoft Word 12"> <meta name="Originator" content="Microsoft Word 12"> <title>JSP页面导出为Word文档</title> </head> <body> 。。。页面内容。。。 </body> </html>
http://blog.sina.com.cn/s/blog_59e2a4100100kejd.html
0 0
- jsp 导出 word excel
- jsp导出word,execl
- jsp导出excell,word
- jsp导出word
- jsp打印,导出word/excel
- jsp导出word的技巧
- JSP导出到excel,word
- 简单的jsp导出excel/word
- Jsp导出word,文件名乱码的问题
- jsp页面中导出word文档
- jsp页面导出成word文件
- jsp 导出word 的分页实现方案
- jsp导出word,java导入access,freemarker
- jsp页面导出成word,excel
- 使用jsp导出excel或word
- jsp简单导出word,不使用poi
- jsp通过js按钮导出word小结
- 为什么JSP导出为excel,word后丢失了格式?
- Notepad++文本比较插件:Compare
- json 乱码
- utf8和UTF-8的不同 不同web程序之间的传值
- 使用Java将中文字符转换成Unicode编码
- Activity not started, its current task has been brought to the front 。
- jsp导出word
- Struts2整合Spring
- chrome浏览器插件开发
- 自定义android ProgressDialog
- Chrome 调试总是进入 Paused in debugger状态
- 启动Tomcat时遇到的 java.lang.IllegalArgumentException: Can't convert argument: null 异常
- XP下如何切换到administrator用户
- Spring AOP + AspectJ Annotation Example
- Word图表图注编号自动完成