jspmart下载出错!,痛苦!!!请教,谢谢
---*---download.jsp--*----
<%@page contentType= "text/html;charset=utf-8 "language= "java "import= "org.lingdot.calib.* "
errorPage= " "%>
<jsp:useBean id= "mySmartUpload " scope= "application " class= "com.jspsmart.upload.SmartUpload "/>
<jsp:useBean id= "bookDB " scope= "application " class= "org.lingdot.calib.BookDB "/>
<%
int id=Integer.parseInt(request.getParameter( "id "));
DownloadDetails dd=bookDB.getCalibDownloadsDetails(id);
String path=dd.getUrl();
//path= "upfiles/1.doc ";
mySmartUpload.initialize(pageContext);
mySmartUpload.setContentDisposition(null);
mySmartUpload.downloadFile(path);
%>
错误:
getOutputStream() has already been called for this response
我想按资源的id来查找资源位置的方式来提供下载,可是不行,但去掉注释那一行就可以了,那就实现不了我想的功能了,痛苦,,,请高手指点下,谢谢
------解决方案--------------------路过~
关注~
------解决方案--------------------把注释去掉,然后输出path,看处理后的path到底指向哪去了
------解决方案--------------------菜鸟路过
jspmart是什么 东东都不知道
------解决方案--------------------应该是文件路径问题,你用console输出调试下