主题:jspSmartUpload的问题~~求助
请帮忙看看,我先谢了。
html代码:
<html>
<head>
<title>updown</title>
</head>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<body>
<a href="down.jsp">下载1.txt</a>
</body>
</html>
jsp代码:
<%@page contentType="text/html;charset=gb2312" %>
<%@page import="com.jspsmart.upload.*" %>
<html>
<head>
<title>down</title>
</head>
<body>
<%
SmartUpload su=new SmartUpload();
su.initialize(pageContext);
su.setContentDisposition(null);
su.downloadFile("/upload/1.txt");
%>
</body>
</html>
异常:org.apache.jasper.JasperException: getOutputStream() has already been called for this response
html代码:
<html>
<head>
<title>updown</title>
</head>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<body>
<a href="down.jsp">下载1.txt</a>
</body>
</html>
jsp代码:
<%@page contentType="text/html;charset=gb2312" %>
<%@page import="com.jspsmart.upload.*" %>
<html>
<head>
<title>down</title>
</head>
<body>
<%
SmartUpload su=new SmartUpload();
su.initialize(pageContext);
su.setContentDisposition(null);
su.downloadFile("/upload/1.txt");
%>
</body>
</html>
异常:org.apache.jasper.JasperException: getOutputStream() has already been called for this response