SmartUpload上传提示这样的错误cannot access upload.SmartUpload?
mowic 2004-11-26 04:33:48 这两个是原文件
test.jsp
<body>
<form action="test_do.jsp" method="post" enctype="multipart/form-data" name="form1">
<input name="image" type="file" id="image">
<input type="submit" name="Submit" value="提交">
</form>
</body>
test_to.jsp
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
这个是body之间的
<body>
<jsp:useBean id="mySmartUpload" scope="page" class="upload.SmartUpload"/>
<%
mySmartUpload.initialize(pageContext);
com.jspsmart.upload.File myFile = mySmartUpload.getFiles().getFile(0);
mySmartUpload.upload();
String myFileName=myFile.getFileName();
String test=smartUpload.getRequest().getParameter("test");
out.println(test);
out.println("接收数据成功");
out.println(myFileName);
%>
</body>
这是抛出的异常错误:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\test_do_jsp.java:52: cannot access upload.SmartUpload
An error occurred at line: 9 in the jsp file: /test_do.jsp
Generated servlet error:
bad class file: G:\web\root\WEB-INF\classes\upload\SmartUpload.class
class file contains wrong class: com.jspsmart.upload.SmartUpload
Please remove or make sure it appears in the correct subdirectory of the classpath.
upload.SmartUpload mySmartUpload = null;
^
1 error
在WEB-INF的class里面有个upload文件夹 里面有这几个文件File.class Files.class Request.class SmartUpload.class SmartUploadException.class
不知道错误出在哪儿,请大家帮忙看一下,谢谢