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
Hi all
Please help me how to create a data base connection (Postgre sql) from a jsp page
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.
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