From: | Michael Teter <michael_teter(at)yahoo(dot)com> |
---|---|
To: | Joseph Syjuco <joseph(at)asti(dot)dost(dot)gov(dot)ph>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: jsp postgres installation/configuration howto url |
Date: | 2003-04-28 15:28:26 |
Message-ID: | 20030428152826.21553.qmail@web10008.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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(at)asti(dot)dost(dot)gov(dot)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(at)postgresql(dot)org)
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
From | Date | Subject | |
---|---|---|---|
Next Message | Rajesh Kumar Mallah | 2003-04-28 15:45:06 | Re: replace function |
Previous Message | Victor Yegorov | 2003-04-28 15:13:30 | Re: replace function |