SmartUpload su = new SmartUpload();
com.jspsmart.upload.File file;
su.initialize(pageContext);
su.setMaxFileSize(10000000);
su.setTotalMaxFileSize(51200000);
su.setAllowedFilesList("") su.setDeniedFilesList("");
su.upload();
%>
前段时间还可以上传,今天在试,出现了如下错误
An error occurred at line: 27 in the jsp file: /manage/do_upload.jsp
Generated servlet error:
SmartUpload cannot be resolved to a type
An error occurred at line: 27 in the jsp file: /manage/do_upload.jsp
Generated servlet error:
SmartUpload cannot be resolved to a type
An error occurred at line: 27 in the jsp file: /manage/do_upload.jsp
Generated servlet error:
com.jspsmart.upload.File cannot be resolved to a type
我以为是没找到该组件,可是于是在代码开头补上
<%@ page contentType="text/html;charset=gb2312" %>
...
<%@ page import="com.jspsmart.upload.*" %> //补上
可是还是出现同样的错误,以前上传的时候不要添加的,奇怪了.
6 个解决方案
#1
原来是误删了包,但现在不知道如何放,出现如下错误,
The type SmartUpload is ambiguous
The type SmartUpload is ambiguous
#2
E:\Tomcat 5.5\webapps\ROOT\WEB-INF\classes\com\jspsmart\upload
是这种路径对吗?
有人在吗?谢谢了...
是这种路径对吗?
有人在吗?谢谢了...
#3
把SmartUpload.jar 放到web-inf/lib里面就可以
#4
N年前就关闭的项目,现在怎么还在用?
赶快换吧
赶快换吧
#5
问题解决了.
#6
怎么解决的,求教一下
#1
原来是误删了包,但现在不知道如何放,出现如下错误,
The type SmartUpload is ambiguous
The type SmartUpload is ambiguous
#2
E:\Tomcat 5.5\webapps\ROOT\WEB-INF\classes\com\jspsmart\upload
是这种路径对吗?
有人在吗?谢谢了...
是这种路径对吗?
有人在吗?谢谢了...
#3
把SmartUpload.jar 放到web-inf/lib里面就可以
#4
N年前就关闭的项目,现在怎么还在用?
赶快换吧
赶快换吧
#5
问题解决了.
#6
怎么解决的,求教一下