回 帖 发 新 帖 刷新版面

主题: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

回复列表 (共2个回复)

沙发

不知道你下载了jspsmartupload.jar组件么,把他放到tomcat安装目录的webapps/root/lib下面

板凳

我下载了的~~

我来回复

您尚未登录,请登录后再回复。点此登录或注册