编程语言

img liaoxingya276

设置网页的http头(下载保存,在线浏览)

发表于2004/10/12 16:19:00  2225人阅读

分类: java学习

<%@ page contentType="text/html; charset=shift_jis" language="java" import="java.sql.*" %>

<%
out.println("fdfafdfdaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
response.setHeader("Content-type","application/x-msexcel");
//response.setHeader("Content-Disposition","inline; filename=/"desk.xls/"");//online open
response.setHeader("content-disposition","attachment;filename=/"syntax.xls/"");//download
   %>

阅读全文
0 0

相关文章推荐

img
取 消
img