Received: from paris.netalfa.com.br (paris.netalfa.com.br [200.210.212.12]) by hub.org (8.9.3/8.9.3) with ESMTP id HAA44225 for ; Tue, 24 Aug 1999 07:58:32 -0400 (EDT) (envelope-from robson@netalfa.com.br) Received: from robson (robson.netlalfa.com.br [200.210.212.30] (may be forged)) by paris.netalfa.com.br (8.9.2/8.9.2) with SMTP id JAA07590 for ; Tue, 24 Aug 1999 09:04:15 -0300 (EST) Message-ID: <001101beee27$2eca55e0$1ed4d2c8@netalfa.com.br> Reply-To: "Robson Martins" From: "Robson Martins" To: "pgsql-interfaces" References: Subject: Re: [INTERFACES] Problem to access postgres database with jdbcusingthe driver on the server side... Date: Tue, 24 Aug 1999 08:52:45 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 ----- Original Message ----- From: Jens Glaser To: Robson Martins Sent: Monday, August 23, 1999 10:45 PM Subject: Re: [INTERFACES] Problem to access postgres database with jdbcusingthe driver on the server side... > Hi, > > On Mon, 23 Aug 1999, Robson Martins wrote: > > Everything....nothing works.... > > You did use Class.forName to load the pgsql-driver (postgresql.Driver) ? > (or the property jdbc.drivers, but not sure if that's possible with > applets) > You supplied the correct URL to getconnection ? > > -- > Jens Glaser Am Holderstrauch 13, 36041 Fulda, 0661/9429507 jens@jens.de > The code below is what i'm using on my applet, i think it works with applet, cause work swhen the postgresql.jar is my classpath, and I have read anything about put the driver on the server side, I dunno... try { Class.forName("postgresql.Driver"); co = DriverManager.getConnection("jdbc:postgresql://myhost/mydb","username","pass word"); st = co.createStatement(); rs = st.executeQuery("select * from tablename"); if (rs != null) { while ( rs.next() ) { doanything } } rs.close(); } catch (Exception e1) {} Well......:(( I need this so much... Anybody help me! Hugs..Robson !!