我连不起在和web-inf同一目录的  bookshop下面的 bookshop.mdb,配了数据源或者用绝对路径也不行,但是我用java 和JSP 放在bookshop下面连就能连起来了,有哪为兄弟能指点一下吗?代码如下:
package com.qifengbookshop;import java.sql.*;public class coonDB {
public coonDB(){
Connection coon = null;
Statement stat = null;
ResultSet rs = null;
String url = "sun.jdbc.odbc.JdbcOdbcDriver";
String sql = null;

try{
   Class.forName (url);
}catch(ClassNotFoundException e){
e.printStackTrace();
}
try{
 coon = DriverManager.getConnection("jdbc:odbc:bookshop");
 stat = coon.createStatement();
 //rs = stat.executeQuery(sql); }catch(SQLException e){
e.printStackTrace();
}finally {
try{
if(rs!=null){
rs.close();
rs = null;
}
if(stat!=null){
stat.close();
rs = null;
}
if(coon!=null){
coon.close();
coon = null;
}
}catch(SQLException e){
e.printStackTrace();
}
}
}}