link to Jsp - Mailing list pgsql-sql

From Shavonne Marietta Wijesinghe
Subject link to Jsp
Date
Msg-id 013001c89019$88e91d20$0602a8c0@DREAM
Whole thread Raw
Responses Re: link to Jsp
List pgsql-sql
Hello
 
I'm trying to connect to my postgresql db from a JSP page but my db is on one computer and the jsp in another..
 
Has anyone done something like this before??
 
 private synchronized Connection getConnection() throws ClassNotFoundException,
      SQLException {
    final String DRIVER = "org.postgresql.Driver";
    final String URL = "jdbc:postgresql:FormAjax";
    final String USERNAME = "postgres";
    final String PASSWORD = "form";
 
    Class.forName(DRIVER);
 
    return DriverManager.getConnection(URL, USERNAME, PASSWORD);
 }
 
Thanks
 
Shavonne Wijesinghe

pgsql-sql by date:

Previous
From: Roberto Spier
Date:
Subject: Re: Export Access 97 to PostgreSQL
Next
From: Erik Jones
Date:
Subject: Re: Finding all References to a Primary Key