jsp postgresql problems

Поиск
Список
Период
Сортировка
От Ryan Skoblenick
Тема jsp postgresql problems
Дата
Msg-id 000801c1c30e$624daa20$bb372a18@cr704668a
обсуждение исходный текст
Ответы Re: jsp postgresql problems  ("Nick Fankhauser" <nickf@ontko.com>)
Re: jsp postgresql problems  ("Joe Shevland" <jshevland@j-elite.com>)
weird problems solved ??  (# sriram # <sriram@imsc.ernet.in>)
Список 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 по дате отправления:

Предыдущее
От: bala_tbn@yahoo.com
Дата:
Сообщение: Questions?
Следующее
От: "Mihai Gheorghiu"
Дата:
Сообщение: Select for update