在classpath中设置JDBC driver路径,最好在启动程序里面用 SET CLASSPATH =%TOMCAT_HOME%/ ...

解决方案 »

  1.   

    你这样试试,
    如果你在tomcat----webapps---yourweb(你自己的应用程序)---web-inf----lib里添加你的驱动程序包.jar
      

  2.   

    error establishing socket这个什么意思?大虾帮忙啊
    55555555555555
      

  3.   

    好像是在WIN-INF  -> classes 的同一级目录下新建lib文件夹放置驱动程序
      

  4.   

    error establishing socket
    没有打开数据库服务器!!!
      

  5.   

    <HTML><HEAD><TITLE></TITLE></head><BODY background=images/bj.jpg  leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
    <script>
    function switchSysBar1(){
      var obj = document.all("first").style.display;
      obj = (obj=="") ? "none": "";
    }
    function switchSysBar2(){
      var obj = document.all("second").style.display;
      obj = (obj=="") ? "none": "";

    </script>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
     <!--  <tr>
        <td width="100%">
        <iframe name="I1" scrolling="no" target="main" width="100%" height="60" border="0" frameborder="0" src="adminlefttopframe.jsp">
        </iframe></td>
      </tr> -->
      <tr>
        <td bgcolor="#E1E1E1">
        <table border="0" cellPadding="0" cellSpacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
          <tr style="{cursor:hand}">
            <td onclick="switchSysBar1()" style="height: 100%">&nbsp;<b>本人信息</b></td>
            <td onclick="switchSysBar1()" style="height: 100%">
            <p align="right">
            <font style="color: #6699cc; cursor: hand; font-family: Webdings; font-size: 9pt">
            <span id="switchPoint1">6</span></font>&nbsp; </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr  >
        <td width="100%" id="first">
        <iframe name="I2" scrolling="no" target="main" height="110" width="100%" border="0" frameborder="0" src="personInfor.jsp">
        </iframe> </td>
      </tr>  <tr>
        <td bgcolor="#E1E1E1">
        <table border="0" cellPadding="0" cellSpacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
          <tr style="{cursor:hand}">
            <td width="82%" style="height: 100%" onclick="switchSysBar2()">&nbsp;<b>修改密码</b></td>
            <td width="18%" style="height: 100%" onclick="switchSysBar2()">
            <p align="right">
            <font style="color: #6699cc; cursor: hand; font-family: Webdings; font-size: 9pt">
            <span id="switchPoint2">6</span></font>&nbsp; </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td id="second"style="{display:none}">
        <iframe name="testinfo" scrolling="no" target="main" height="200" width="160" border="0" frameborder="0" src="editpwd.jsp">
        </iframe></td>
      </tr>
    </table>
    </BODY></HTML>
      

  6.   

    把JAR文件放到tomcat/common/lib下就可以,重新启动一下,再出问题就是不是找不到驱动程序的问题或你驱动程序有问题
      

  7.   

    function switchSysBar1(){
      var obj = document.all.second.style.display;
      document.all.second.style.display = (obj=="block") ? "none": "block";
      obj;
    }function switchSysBar2(){
      var obj = document.all.first.style.display;
      document.all.first.style.display = (obj=="block") ? "none": "block";
    }