How to connect to postgresql from JSP

Hi all

Please help me how to create a data base connection (Postgre sql) from a jsp page

[102 byte] By [codename47a] at [2007-11-27 10:19:41]
# 1

JSP is simply the HTML with some java markup. The Java is server-side code that is converted at request-time (at the time the page is requested).

In the Servlet, create your code for database connections, and simply add the logic of processing whatever UI events on the JSP page into a resulting JSP page.

If you want to use JSP only, then simply code it up, but remember this will add to loading time and will be a single-session-per-request setup.

watertownjordana at 2007-7-28 16:59:11 > top of Java-index,Java Essentials,New To Java...
# 2

This page gives some forms/bean info for JSP, but substitute your database code for their UserData bean and their form for your dataset actions.

http://www.jsptut.com/Forms.jsp

watertownjordana at 2007-7-28 16:59:11 > top of Java-index,Java Essentials,New To Java...
# 3

Please say me how to write the connection string for postgresql

codename47a at 2007-7-28 16:59:11 > top of Java-index,Java Essentials,New To Java...
# 4

RTFM

jwentinga at 2007-7-28 16:59:11 > top of Java-index,Java Essentials,New To Java...
# 5

FTFM?

codename47a at 2007-7-28 16:59:11 > top of Java-index,Java Essentials,New To Java...
# 6

> FTFM?

http://en.wikipedia.org/wiki/RTFM

aniseeda at 2007-7-28 16:59:11 > top of Java-index,Java Essentials,New To Java...
# 7

Via your model. You do have a model layer don't you?

georgemca at 2007-7-28 16:59:11 > top of Java-index,Java Essentials,New To Java...