大鱼

jsp中导出EXCEL文档


<html>
 <head>
  <title>Excel文档</title>
 </head>
 <link rel="stylesheet" type="text/css" href="../css/sjpt.css">
 <meta http-equiv=Content-Type content="text/html; charset=GB2312">
 <meta name=ProgId content=Excel.Sheet>
 <meta name=Generator content="Microsoft Excel 9">
 <meta http-equiv=Content-Type content="text/html; charset=GB2312">

 <%response.setHeader("Content-disposition","attachment;filename=operrpt.xls");%>

 <body>
  <%=(String)session.getAttribute("messagestoString")%>
 </body>
</html>

posted on 2009-04-07 15:36 大鱼 阅读(155) 评论(0)  编辑  收藏 所属分类: jsp


只有注册用户登录后才能发表评论。


网站导航: