Re: JSP to PostgreSql

From: Guillaume Cottenceau <gc(at)mnc(dot)ch>
To: "Shavonne Marietta Wijesinghe" <shavonne(dot)marietta(at)studioform(dot)it>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: JSP to PostgreSql
Date: 2008-04-01 10:20:53
Message-ID: 87y77xj2pm.fsf@mnc.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

"Albe Laurenz" <laurenz.albe 'at' wien.gv.at> writes:

> Shavonne Marietta Wijesinghe wrote:
>> Hello. I'm trying to connect my jsp page to read a database
>> on a windows 2003 server.
>>
>> Class.forName("org.postgresql.Driver");
>> Connection myConn=DriverManager.getConnection("jdbc:postgresql://192.168.2.3:8080/database/FormAjax?user=postgres&password=form");
>>
>> But when i run this i get an "Exception report" error
>>
>> org.apache.jasper.JasperException: Exception in JSP:
>
> My first instinct is to say: this is no exception generated by PostgreSQL.
> Ask somewhere else!
>
> But then I see the URL you use, and it looks wrong.
> Given that your database name is "formajax", you should connect with the URL:
>
> jdbc:postgresql://192.168.2.3:8080/formajax?user=postgres&password=form

Well, we can also have doubts that postgres is really listening
on port 8080..

--
Guillaume Cottenceau, MNC Mobile News Channel SA, an Alcatel-Lucent Company
Av. de la Gare 10, 1003 Lausanne, Switzerland - direct +41 21 317 50 36

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Michael Paesold 2008-04-01 10:25:14 Re: [HACKERS] How embarrassing: optimization of a one-shot query doesn't work
Previous Message Albe Laurenz 2008-04-01 10:08:43 Re: JSP to PostgreSql