当前位置: 技术问答>java相关
我想问:有关jsp页面包含javabean的问题!!!
来源: 互联网 发布时间:2015-07-24
本文导语: jsp页面http://localhost:8080/examples/jsp/system_jsp/login1.jsp包括以下代码: 在F:Apache Tomcat 4.0webappsexamplesWEB-INFclassesDBConnect 下有DataBaseSelect.java文件,用javac编译通过。 可运行jsp页面时,出现以下错误: org.apache.jasper.JasperEx...
jsp页面http://localhost:8080/examples/jsp/system_jsp/login1.jsp包括以下代码:
在F:Apache Tomcat 4.0webappsexamplesWEB-INFclassesDBConnect
下有DataBaseSelect.java文件,用javac编译通过。
可运行jsp页面时,出现以下错误:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
error: File F:Apache Tomcat 4.0webappsexamplesWEB-INFclassesDBConnectDataBaseSelect.class does not contain type DBConnect.DataBaseSelect as expected, but type DataBaseSelect. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
An error occurred at line: 9 in the jsp file: /jsp/system_jsp/login1.jsp
Generated servlet error:
F:Apache Tomcat 4.0worklocalhostexamplesjspsystem_jsplogin1$jsp.java:116: Class DBConnect.DataBaseSelect not found.
DBConnect.DataBaseSelect select = null;
^
An error occurred at line: 9 in the jsp file: /jsp/system_jsp/login1.jsp
Generated servlet error:
F:Apache Tomcat 4.0worklocalhostexamplesjspsystem_jsplogin1$jsp.java:119: Class DBConnect.DataBaseSelect not found.
select= (DBConnect.DataBaseSelect)
^
An error occurred at line: 9 in the jsp file: /jsp/system_jsp/login1.jsp
Generated servlet error:
F:Apache Tomcat 4.0worklocalhostexamplesjspsystem_jsplogin1$jsp.java:124: Class DBConnect.DataBaseSelect not found.
select = (DBConnect.DataBaseSelect) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "DBConnect.DataBaseSelect");
^
4 errors, 1 warning
请问各位师兄,我该怎么做!!!!:)
在F:Apache Tomcat 4.0webappsexamplesWEB-INFclassesDBConnect
下有DataBaseSelect.java文件,用javac编译通过。
可运行jsp页面时,出现以下错误:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
error: File F:Apache Tomcat 4.0webappsexamplesWEB-INFclassesDBConnectDataBaseSelect.class does not contain type DBConnect.DataBaseSelect as expected, but type DataBaseSelect. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
An error occurred at line: 9 in the jsp file: /jsp/system_jsp/login1.jsp
Generated servlet error:
F:Apache Tomcat 4.0worklocalhostexamplesjspsystem_jsplogin1$jsp.java:116: Class DBConnect.DataBaseSelect not found.
DBConnect.DataBaseSelect select = null;
^
An error occurred at line: 9 in the jsp file: /jsp/system_jsp/login1.jsp
Generated servlet error:
F:Apache Tomcat 4.0worklocalhostexamplesjspsystem_jsplogin1$jsp.java:119: Class DBConnect.DataBaseSelect not found.
select= (DBConnect.DataBaseSelect)
^
An error occurred at line: 9 in the jsp file: /jsp/system_jsp/login1.jsp
Generated servlet error:
F:Apache Tomcat 4.0worklocalhostexamplesjspsystem_jsplogin1$jsp.java:124: Class DBConnect.DataBaseSelect not found.
select = (DBConnect.DataBaseSelect) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "DBConnect.DataBaseSelect");
^
4 errors, 1 warning
请问各位师兄,我该怎么做!!!!:)
|
DataBaseSelect.java文件里是否有
package DBConnect;
如果没有,就不需要DBConnect文件夹!
package DBConnect;
如果没有,就不需要DBConnect文件夹!