Database access for JSP pages
1 posts in topic
Flat View  Flat View

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


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?


Re: Database access for JSP pages

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


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.*"%>



do your normal connections here and your query statement


Conection Successful

About | Sitemap | Contact