JSP to PostgreSql - Mailing list pgsql-jdbc

From Shavonne Marietta Wijesinghe
Subject JSP to PostgreSql
Date
Msg-id 007001c893d9$83632bc0$0602a8c0@DREAM
Whole thread Raw
Responses Re: JSP to PostgreSql
List pgsql-jdbc
Hello. I'm trying to connect my jsp page to read a database on a windows 2003 server.
 
<%@ page language="java" import="java.sql.*" %>
<body>
<%
Class.forName("org.postgresql.Driver");
Connection myConn=DriverManager.getConnection("jdbc:postgresql://XXX.XXX.X.X/database/FormAjax?user=postgres&password=form");
%>
</body>
 
But when i run this i get an "Exception report" error
 
org.apache.jasper.JasperException: Exception in JSP: /jsp/pgtest.jsp:10
7:
8: Class.forName("org.postgresql.Driver");
9:
10: Connection myConn=DriverManager.getConnection("jdbc:postgresql://192.168.2.3:8080/database/FormAjax?user=postgres&password=form");
11:
12: %>
13: </body>
 
Any idea anyone?
Thank you.
Shavonne

pgsql-jdbc by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: CallableStatement and getUpdateCount
Next
From: "Albe Laurenz"
Date:
Subject: Re: JSP to PostgreSql