From: | "Robson Martins" <robson(at)netalfa(dot)com(dot)br> |
---|---|
To: | "pgsql-interfaces" <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | Re: [INTERFACES] Problem to access postgres database with jdbcusingthe driver on the server side... |
Date: | 1999-08-24 11:52:45 |
Message-ID: | 001101beee27$2eca55e0$1ed4d2c8@netalfa.com.br |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
----- Original Message -----
From: Jens Glaser <jens(at)helena(dot)jens(dot)de>
To: Robson Martins <robson(at)netalfa(dot)com(dot)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(at)jens(dot)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 !!
From | Date | Subject | |
---|---|---|---|
Next Message | Robson Martins | 1999-08-24 12:20:32 | Re: [INTERFACES] Problem to access postgres database with jdbc using the driver on the server side... |
Previous Message | Daniel Stolk | 1999-08-24 11:02:33 | Trying to find a PostgreSQL interface |