我使用JspSmartUpload控件下载的时候,使用mySmartUpload.downloadFile(downloadpath); 有的可下载,有的会提示出错:
java.lang.IllegalStateException: getOutputStream() has already been called for this response
后来解决了,就是文件开始的<%%>都要紧挨着,不能有空格,更不能有换行,如:
<%@ page contentType="text/html; charset=GBK" %><%@ page import="java.io.*" %><%
java.lang.IllegalStateException: getOutputStream() has already been called for this response
后来解决了,就是文件开始的<%%>都要紧挨着,不能有空格,更不能有换行,如:
<%@ page contentType="text/html; charset=GBK" %><%@ page import="java.io.*" %><%