刚学JSP出现点问题!大家来看下!
我写的JAVABEAN程序放进了Tomcat 4.1\webapps\ROOT\shop942\WEB-INF这里面!!!写了个JSP页面<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*"%>
<%@ page import="sqlbean.SQLConn"%>
<html>
<head>
<title></title>
</head>
<body>
<jsp:useBean id="Con1" class="sqlbean.SQLConn" scope="request" />
<%! ResultSet rs;%>
<%! String s;%>
<%
s="Select * From Kind";
rs=Con1.executeQuery(s);
while(rs.next()){
out.println(rs.getObject("Kind"));
}
Con1.close();
%>
</body>
</html>
可是一运行就出错:
L:\Tomcat 4.1\work\Standalone\localhost\_\shop942\useTest_jsp.java:8: package sqlBean does not exist
import sqlbean.SQLConn;
^
L:\Tomcat 4.1\work\Standalone\localhost\_\shop942\useTest_jsp.java:53: package sqlBean does not exist
sqlbean.SQLConn Con1 = null;
^
[此贴子已经被作者于2007-8-13 19:06:27编辑过]