67,513
社区成员
发帖
与我相关
我的任务
分享
java.text.SimpleDateFormat tempDate = new java.text.SimpleDateFormat("yyyyMMddHHmmss");
String time = tempDate.format(new Date());
String fileName = "导出_"+time+".doc";
fileName = new String(fileName.getBytes("GBK"), "ISO8859_1");
response.setHeader("Content-Disposition", "attachment;filename="
+ fileName);
response.setDateHeader("Expires", 0);
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");