View Single Post

   
  #2 (permalink)  
Old 04-16-2008, 01:00 AM
Albe Laurenz
 
Posts: n/a
Default Re: JSP to PostgreSql

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("jdbcostgresq l://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:

jdbcostgresql://192.168.2.3:8080/formajax?user=postgres&password=form

Yours,
Laurenz Albe

--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

Reply With Quote