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 [EMAIL PROTECTED]
      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

Reply via email to