pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: jsp postgres installation/configuration howto url
2+ messages / 2 participants
[nested] [flat]
* jsp postgres installation/configuration howto url
@ 2003-04-28 17:33 Joseph Syjuco <joseph@asti.dost.gov.ph>
2003-04-28 15:28 ` Re: jsp postgres installation/configuration howto url Michael Teter <michael_teter@yahoo.com>
0 siblings, 1 reply; 2+ messages in thread
From: Joseph Syjuco @ 2003-04-28 17:33 UTC (permalink / raw)
To: pgsql-sql
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: jsp postgres installation/configuration howto url
2003-04-28 17:33 jsp postgres installation/configuration howto url Joseph Syjuco <joseph@asti.dost.gov.ph>
@ 2003-04-28 15:28 ` Michael Teter <michael_teter@yahoo.com>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Teter @ 2003-04-28 15:28 UTC (permalink / raw)
To: Joseph Syjuco <joseph@asti.dost.gov.ph>; 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@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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-04-28 17:33 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-28 17:33 jsp postgres installation/configuration howto url Joseph Syjuco <joseph@asti.dost.gov.ph>
2003-04-28 15:28 ` Michael Teter <michael_teter@yahoo.com>
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