您的位置:首页 > Web前端 > JavaScript

直接通过网页jsp导出Excel文件

2017-09-06 15:51 246 查看
<%

CookieUtil.add("downloaded","true",3600,response);

String fileName = new String("******".getBytes("GBK"),"ISO-8859-1");

response.setContentType("application/x-xls; charset=gb2312");

response.setHeader("Content-Disposition", "attachment;filename=" + fileName + ".xls");

%>

<html>

<head>

<style>

.xlsText{mso-number-format:"\@"}

</style>

<head>

<body>

....
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: