Skip site navigation (1) Skip section navigation (2)

Re: JSP to PostgreSql

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
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:08:43
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
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://");
> 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:


Laurenz Albe

In response to


pgsql-jdbc by date

Next:From: Guillaume CottenceauDate: 2008-04-01 10:20:53
Subject: Re: JSP to PostgreSql
Previous:From: Shavonne Marietta WijesingheDate: 2008-04-01 09:19:36
Subject: JSP to PostgreSql

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group