pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Teter <michael_teter@yahoo.com>
To: Joseph Syjuco <joseph@asti.dost.gov.ph>
To: pgsql-sql@postgresql.org
Subject: Re: jsp postgres installation/configuration howto url
Date: Mon, 28 Apr 2003 08:28:26 -0700 (PDT)
Message-ID: <20030428152826.21553.qmail@web10008.mail.yahoo.com> (raw)
In-Reply-To: <1051551240.3078.1.camel@Falcon>

For simple demonstration purposes, JSP+Postgres (or any jdbc-enabled db) is
very simple.

I'm not aware of a HOWTO, but here's a little advice:

Install PostgreSQL.  Start postmaster with "-i" option.
Download the postgresql jdbc driver (from http://jdbc.postgresql.org).

Look on java.sun.com for jdbc tutorial.
Use a connection string similar to this to connect to your database:
Connection db = DriverManager.getConnection(
  "jdbc:postgresql://127.0.0.1:5432/mydatabase",
  "myusername",
  "mypassword")

For testing purposes, doing this in JSP is just like doing it in a simple java
program.

When you get ready to have multiple users, I recommend modifying your webapp
to use DDConnectionBroker to pool your database connections.

MT

--- Joseph Syjuco <joseph@asti.dost.gov.ph> wrote:
> I would like to experiment using jsp with postgres and i need help on
> the url of a simple tutorial on how to configure jsp and postgres.
> Thank  you so much
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com




view thread (2+ messages)  latest in thread

Message-ID: <20030428152826.21553.qmail@web10008.mail.yahoo.com>
Permalink:  ../20030428152826.21553.qmail@web10008.mail.yahoo.com/
Also on:    postgresql.org/message-id/20030428152826.21553.qmail@web10008.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: michael_teter@yahoo.com, joseph@asti.dost.gov.ph
  Subject: Re: jsp postgres installation/configuration howto url
  In-Reply-To: <20030428152826.21553.qmail@web10008.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox