http://www.csdn.net/expert/topic/844/844195.xml?temp=.9682733
http://www.csdn.net/expert/topic/886/886839.xml?temp=.8783686
http://www.csdn.net/expert/topic/736/736726.xml?temp=.4591791

解决方案 »

  1.   

    如果先在Servlet中获取连接进行事务处理: 
      ConnectionPool pool = (ConnectionPool) getServletContext().getAttribute("conPool"); 
      if (pool == null) 
      { 
        pool = new ConnectionPool(); 
        getServletContext().setAttribute("conPool",pool); 
      }   Connection conn = pool.getConnection(); 
      //事务处理 再在jsp中通过bean获取连接, 
    <jsp:useBean id="conPool" class="ConnectionPool" scope="application" /> 连接池id为"conPool"
    想知道:这是servlet和jsp用的是同一个连接池?,
    还是分别创建了连接池?