T
thammerlund
Hi everyone,
I'm just starting to learn JAVA/JSP, and I'm at the point where I'm
trying to connect to a PostgreSQL 8.1 database through Tomcat 5.5, but
I'm not having any success. My Page code is as follows:
<html>
<head>
</head>
<%@ page language="java" import="java.sql.*" %>
<body>
<%
public Statement dbStatement;
dbStatement = dbConnection.createStatement();
Class.forName("org.postgresql.Driver");
Connection
myConn=DriverManager.getConnection("jdbcostgresql://localhost/PostgreDB?user=postgres&password=postgres");
Conn = setDbConnection(PostgreDB)
%>
</html>
Is there something wrong with the code, or is it the web.xml or
server.xml file? I put the postgresql-8.1-405.jdbc3.jar file in
WEB-INF/lib.
Thank you,
Tom
I'm just starting to learn JAVA/JSP, and I'm at the point where I'm
trying to connect to a PostgreSQL 8.1 database through Tomcat 5.5, but
I'm not having any success. My Page code is as follows:
<html>
<head>
</head>
<%@ page language="java" import="java.sql.*" %>
<body>
<%
public Statement dbStatement;
dbStatement = dbConnection.createStatement();
Class.forName("org.postgresql.Driver");
Connection
myConn=DriverManager.getConnection("jdbcostgresql://localhost/PostgreDB?user=postgres&password=postgres");
Conn = setDbConnection(PostgreDB)
%>
</html>
Is there something wrong with the code, or is it the web.xml or
server.xml file? I put the postgresql-8.1-405.jdbc3.jar file in
WEB-INF/lib.
Thank you,
Tom