From: Robson Martins <robson@netalfa.com.br>
To: pgsql-interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: [INTERFACES] Problem to access postgres database with jdbcusingthe driver on the server side...
Date: Tue, 24 Aug 1999 08:52:45 -0300
Message-ID: <001101beee27$2eca55e0$1ed4d2c8@netalfa.com.br> (raw)
References: <Pine.LNX.4.05.9908240143090.444-100000@helena.jens.de>
----- Original Message -----
From: Jens Glaser <jens@helena.jens.de>
To: Robson Martins <robson@netalfa.com.br>
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 !!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: robson@netalfa.com.br
Subject: Re: [INTERFACES] Problem to access postgres database with jdbcusingthe driver on the server side...
In-Reply-To: <001101beee27$2eca55e0$1ed4d2c8@netalfa.com.br>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox