您的位置:程序门 -> java -> web 开发



jsp运用smartupload上传组件的问题,急啊,请高手帮帮忙!!!


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


jsp运用smartupload上传组件的问题,急啊,请高手帮帮忙!!![已结贴,结贴人:sunyaomingdddd]
发表于:2007-04-14 20:40:10 楼主
<%               ...
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.* "   %>   //补上
可是还是出现同样的错误,以前上传的时候不要添加的,奇怪了.
发表于:2007-04-14 22:02:591楼 得分:0
原来是误删了包,但现在不知道如何放,出现如下错误,
the   type   smartupload   is   ambiguous

发表于:2007-04-14 22:14:402楼 得分:0
e:\tomcat   5.5\webapps\root\web-inf\classes\com\jspsmart\upload
是这种路径对吗?
有人在吗?谢谢了...
发表于:2007-04-14 22:17:243楼 得分:10
把smartupload.jar   放到web-inf/lib里面就可以
发表于:2007-04-14 22:22:544楼 得分:0
n年前就关闭的项目,现在怎么还在用?
赶快换吧
发表于:2007-04-15 09:52:095楼 得分:0
问题解决了.


快速检索

最新资讯
热门点击