From just_darren@hotmail.com Mon Jun 12 07:44:55 2000 Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 2901 invoked from network); 12 Jun 2000 07:44:55 -0000 Received: from f22.law3.hotmail.com (HELO hotmail.com) (209.185.241.22) by locus.apache.org with SMTP; 12 Jun 2000 07:44:55 -0000 Received: (qmail 30544 invoked by uid 0); 12 Jun 2000 07:44:31 -0000 Message-ID: <20000612074431.30543.qmail@hotmail.com> Received: from 203.116.61.132 by www.hotmail.com with HTTP; Mon, 12 Jun 2000 00:44:31 PDT X-Originating-IP: [203.116.61.132] From: "Darren Lee Deliang" To: tomcat-user@jakarta.apache.org Subject: DB Question Date: Mon, 12 Jun 2000 15:44:31 SGT Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N to connect to a db from jsp i need to do the following: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection(url, "myLogin", "myPassword"); question is where do i put them, in my jsp, bean or what? thanks Darren ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com