jsp问题呀急救 为什么总是提示找不到包 呀 我放好了呀

来源:百度知道 编辑:UC知道 时间:2024/07/01 07:40:30
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
C:\Documents and Settings\Owner\.netbeans\5.5.1\apache-tomcat-5.5.17_base\work\Catalina\localhost\WebApplication5\org\apache\jsp\do_005fupload_jsp.java:7: 软件包 com.jspsmart.upload 不存在
import com.jspsmart.upload.*;
^

An error occurred at line: 196 in the jsp file: /do_upload.jsp
Generated servlet error:
C:\Documents and Settings\Owner\.netbeans\5.5.1\apache-tomcat-5.5.17_base\work\Catalina\localhost\WebApplication5\org\apache\jsp\do_005fupload_jsp.java:241: 软件包 com.jspsmart.upload 不存在
com.jspsmart.upload.SmartUpload mysmartupload=new com.jspsmart.upload.Sma

把你的包放在WEB-INF\LIB目录下
或者你也可以这样.
在D盘下建一个LIB.然后在环境变量里面配置classpath一下就OK

我也是用的那个包.也是那几个JAVA文件..所以..不好意思.

org.apache.jasper.JasperException: Unable to compile class for JSP
我想大概是因为,你的JAVA类没有正常编译
因为你表达不太清楚,建议你把TOMCAT重新安装,确保TOMCAT能正常打开测试页面。把JAR文件放在LIB下面,然后放在一个逻辑盘的根目录下。你放在桌面上看起来不太清楚。