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