Topic: 很简单的代码,但是文件下载出问题 |
Print this page |
1.很简单的代码,但是文件下载出问题 | Copy to clipboard |
Posted by: cenqin8899 Posted on: 2006-11-17 16:25 上传一切正常,但是下载就出错,提示java.lang.IllegalStateException: getOutputStream() has already been called for this response 请大家帮忙看看,谢谢 <%@ page contentType="text/html; charset=GBK" language="java" import="com.jspsmart.upload.*"%><% SmartUpload su=new SmartUpload();//新建一个SmartUpload对象 //上传初始化 su.initialize(pageContext); //设定ContentDisposition为null,以禁止浏览器自动打开文件 su.setContentDisposition(null); try{ su.downloadFile("upload/jspSmartUpload.jar"); } catch(Exception e){e.printStackTrace();} %> |
2.Re:很简单的代码,但是文件下载出问题 [Re: cenqin8899] | Copy to clipboard |
Posted by: YuLimin Posted on: 2006-11-24 21:51 FYI:JSP文件下载及getOutputStream() has already been的解决 http://iamin.blogdriver.com/iamin/1072546.html |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |