Database access for JSP pages
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Chakravarthy_Pedireddy
Posted On:   Thursday, March 3, 2005 03:03 AM

Hello,



Im doing a tool using JSP's, it needs to access the database, how to make the connection to the Database? Is it by using a bean or .java class? Then how can the JSP's get the connection object?



Thanx

Re: Database access for JSP pages

Posted By:   Anonymous  
Posted On:   Tuesday, March 8, 2005 02:57 AM

Hi.


Its the same way you connect to databases in your apps. all you have to do is to embed em in scriplets...check this...

<%@page language="java" import="java.sql.*"%>


<@

try
{

do your normal connections here and your query statement

%>

Conection Successful


About | Sitemap | Contact