用index.jsp去连access数据库,
index所在目录:/liuyang2006/wwwroot/test/index.jsp
数据库文件的目录:/liuyang2006/databases/numb1.mdb
-------------------------------------------------String url="jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=??????numb1.mdb";-------------------------------------------------这些问号里该改成什么呢?谢谢.

解决方案 »

  1.   


    E:\num1.mdb那里写:
    E:\\num1.mdb
      

  2.   

    网络空间也可以拿到它的绝对路径比如你的index.jsp加入下面的语句String path = request.getRealPath("counter/counter.properties");
    out.println(path);你看看输出的path就知道了。
      

  3.   

    网络空间也可以拿到它的绝对路径比如你的index.jsp加入下面的语句String path = request.getRealPath("counter/counter.properties");
    out.println(path);你看看输出的path就知道了。---------------------------------
    刚开始没弄懂您的意思  呵呵
    后来终于有点开窍了 
    谢谢您  
    我的QQ是12244725 您以后能指导指导我吗?