Document resDocument = new Document(resElement);
response.setContentType("application/xml");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Charset","Gb2312");
XMLOutputter xoutput=new XMLOutputter(Format.getPrettyFormat().setEncoding("Gb2312"));
xoutput.output(resDoc ...
public void downLoadFile(File f,String filename,HttpServletResponse response) throws IOException
{
BufferedInputStream br = new BufferedInputStream(new FileInputStream(f));
byte[] buf = new byte[1024]; int len = 0;
response.reset();
response.setContentType("application/x-msdownload;cha ...
- 浏览: 17416 次
- 性别:

- 来自: 上海

- 详细资料
搜索本博客
我的相册
未命名2
共 17 张
共 17 张
链接
最新评论
-
一直想写关于回调函数有关 ...
http://hi.baidu.com/518bc/blog/item/db11 ...
-- by ming206 -
一直想写关于回调函数有关 ...
详细位置请看: http://hi.baidu.com/518bc/blog/i ...
-- by ming206 -
表的自连接同子查询有区别 ...
谢谢 armorking martri的指教
-- by beyondsanli -
表的自连接同子查询有区别 ...
方式二要求下面这个子查询的检索结果最多只有一条记录 SELECT bookcou ...
-- by armorking -
表的自连接同子查询有区别 ...
那要看数据库操作系统的的实现,在各个数据库其中实现方式略有不同,最好是看一下其执 ...
-- by martri






评论排行榜