Results 1 to 3 of 3
Thread: Database Connection
- 11-24-2007, 07:46 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 1
- Rep Power
- 0
- 11-25-2007, 02:20 AM #2
Member
- Join Date
- Aug 2007
- Posts
- 47
- Rep Power
- 0
Hello,
To connect to and dbms from java, u have to usee thee JDBC technology.
U have download from internet a jar that is suppose to implement a driver for comunication and data mapping between java and the dbms.
then in your code u have to load the driver by using the class.forName("driver-name");
then u have to create the connection by the methdo DriverManager.getConnection(url, userName, password).
Url: its the url of your DB
Is is a method to connect to your db..there are other methods..bye
- 11-26-2007, 06:36 AM #3
Member
- Join Date
- Nov 2007
- Posts
- 8
- Rep Power
- 0
This is a good tutorial on how to connect to DB form jsp.
MySQL Database Connectivity with JSP (Windows) by Daniel M. Hendricks
Similar Threads
-
connection problem
By subash in forum JDBCReplies: 5Last Post: 04-22-2008, 09:17 AM -
JSP - using connection cache
By Java Tip in forum Java TipReplies: 0Last Post: 01-30-2008, 09:54 AM -
no connection
By even in forum JDBCReplies: 15Last Post: 01-02-2008, 01:50 PM -
Database connection
By oaklander in forum New To JavaReplies: 2Last Post: 11-12-2007, 11:11 PM -
error I/O connection
By bbq in forum JDBCReplies: 1Last Post: 07-05-2007, 01:33 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks