Re: [GENERAL] PostgreSQL and WWW - Mailing list pgsql-general

From Peter T Mount
Subject Re: [GENERAL] PostgreSQL and WWW
Date
Msg-id Pine.LNX.4.04.9811300721400.682-100000@maidast.retep.org.uk
Whole thread Raw
In response to PostgreSQL and WWW  (Dmitry Iv Popov <mitlas@auricvision.com>)
List pgsql-general
On Sat, 28 Nov 1998, Dmitry Iv Popov wrote:

> Greetings,
>
> great thanks to Oleg Broytmann for his  useful advice,  I've
> understood the proper  fromat for input data at last and the
> problem with copying DB from file was successfully solved.
>
> Well,  I hope  you will  not be  angry with  me for one more
> (and I want belive the last) lame question: how do I make my
> DB accessible from the Web (via JDBC)?  With what parameters
> should I call 'Class.forName()' and
> 'DriverManager.getConnection()' in case of PostgreSQL?

Connection con =
DriverManager.getConnection("jdbc:postgresql:rscexamdb","username","password");

> I must notice that I'm going to write a servlet,  but not an
> applet.

It works best with servlet's and applications, but (personally) it's not
that good for applets.

For applets, it would be better to have your own protocol to a servlet,
then jdbc to the database.

--
       Peter T Mount peter@retep.org.uk
      Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres
 Java PDF Generator: http://www.retep.org.uk/pdf


pgsql-general by date:

Previous
From: Anton de Wet
Date:
Subject: Re: [GENERAL] equivalent of sqlload?
Next
From: f.ermini@telemaco.it
Date:
Subject: PLS HELP ASAP - BIG TROUBLE HERE!!!!