X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A9DD94762BB for ; Mon, 28 Apr 2003 11:28:27 -0400 (EDT) Received: from web10008.mail.yahoo.com (web10008.mail.yahoo.com [216.136.130.44]) by postgresql.org (Postfix) with SMTP id ED0D2475EEE for ; Mon, 28 Apr 2003 11:28:21 -0400 (EDT) Message-ID: <20030428152826.21553.qmail@web10008.mail.yahoo.com> Received: from [204.155.157.33] by web10008.mail.yahoo.com via HTTP; Mon, 28 Apr 2003 08:28:26 PDT Date: Mon, 28 Apr 2003 08:28:26 -0700 (PDT) From: Michael Teter Subject: Re: jsp postgres installation/configuration howto url To: Joseph Syjuco , pgsql-sql@postgresql.org In-Reply-To: <1051551240.3078.1.camel@Falcon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Status: No, hits=-26.0 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/418 X-Sequence-Number: 13119 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 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