jsp postgresql problems - Mailing list pgsql-jdbc

From Ryan Skoblenick
Subject jsp postgresql problems
Date
Msg-id 000801c1c30e$624daa20$bb372a18@cr704668a
Whole thread Raw
Responses Re: jsp postgresql problems
Re: jsp postgresql problems
weird problems solved ??
List pgsql-jdbc
This is my code:

<%@ page import ="java.sql.*" %>

<%

Driver drv = (Driver)Class.forName("org.postgresql.Driver").newInstance(); Connection conn = java.sql.DriverManager.getConnection("jdbc:postgresql://localhost:5432/db_name", "username", "password");

%>

now the stack error i am running into is:

Connection refused. Check that the hostname and port is correct, and that the postmaster is running with the -i flag, which enables TCP/IP networking.

i know its not the server or the way it is setup cause i can connect to the DB in ASP? so what is wrong with the JSP? i do have the drivers installed for postgresql cause the first error before this i was getting was that it couldn't find the drivers (silly me forgot to reset the server).

anyone help ?

Thanks

pgsql-jdbc by date:

Previous
From: bala_tbn@yahoo.com
Date:
Subject: Questions?
Next
From: "Mihai Gheorghiu"
Date:
Subject: Select for update