不用费什么劲,你在JSP中加入
response.setContentType("application/msword");就OK了~~~
GOOD LUCK!~~
response.setContentType("application/msword");就OK了~~~
GOOD LUCK!~~
解决方案 »
- 小白求助,,Hibernate能不能一个类对应多个类
- JSP导入的html,jsp页面中文乱码
- 我的伟大构想
- 如何选择WEB报表工具(一)
- 在网页中怎样引用WEB-INF/Lib目录下某个jar文件中的脚本文件呢?
- 日期计算问题.计算第二个日期是第一个日期加上70年减去1天.
- 把 String[] 放入Vector 时得到意外结果,不明白:<
- 请问哪有表单客户端验证的tag库?
- 怎么知道一个字符串是UniCode编码还是Gb2312的?
- 往sql语句里传值的问题
- Apache 2.0.43 +Tomcat 4.1.24+mod_jk2-2.0.43.dll for win2K整合成功
- 一只傻鸟问题(100)
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.io.*" %>
<%
String filePath="c:/aa.doc";
filePath=filePath.toString();
File myFilePath=new File(filePath);
if(!myFilePath.exists())
myFilePath.createNewFile();
FileWriter resultFile=new FileWriter(myFilePath);
PrintWriter myFile=new PrintWriter(resultFile);
myFile.println("aaaa");
resultFile.close();
%>
简单操作了。