子宫切除手术并发症:JSP问题.................

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/07 06:22:17
org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
The import conn cannot be resolved

An error occurred at line: 2 in the jsp file: /0.jsp
Generated servlet error:
conn cannot be resolved to a type

An error occurred at line: 2 in the jsp file: /0.jsp
Generated servlet error:
conn cannot be resolved to a type

<%@ page language="java" import="java.util.*,conn.*" pageEncoding="ISO-8859-1"%>
<%
conn co=new conn();
%>
就是这代码提示这样的错误
conn.java
package conn.*;
public class conn
throws SQLException, ClassNotFoundException
{
public void conn(){
Connection conn=DBConnection.getConnectionToAccess(application.getRealPath("data/guestbook.mdb"));
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
}
}

好难啊,看不懂

看不明白啊

你一定是男的,不细心,看你的sql 连接 无论 代码对还是
错 都提示 连接没有成功!!!!