•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 374,018 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,696 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 19394 | Replies: 1
![]() |
•
•
Join Date: Feb 2005
Posts: 11
Reputation:
Rep Power: 4
Solved Threads: 0
hi guys
hope you can help
well im tryin to connect my jsp to my database, im uisng tomcat 5 and have stored the MS access database in my ROOT folder.
i have created a User DNS, and have sdk 1.4.2_08 installed
Problem is im not sure what to do now??
do i have to install a sun driver? if so how?
and finally how do i connect to teh database?
Please help thanks! x
hope you can help
well im tryin to connect my jsp to my database, im uisng tomcat 5 and have stored the MS access database in my ROOT folder.
i have created a User DNS, and have sdk 1.4.2_08 installed
Problem is im not sure what to do now??
do i have to install a sun driver? if so how?
and finally how do i connect to teh database?
Please help thanks! x
•
•
Join Date: Aug 2004
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
Hi nelly
No need to do much
I hope u are aware of JDBC-ODBC Driver and they are supported by sdk1.4
First create a DSN using ODBC in control pannel
later for JSP to connect to Database
use the following code
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = DriverManager.getConnection("jdbc:odbc:<DSN name>")
%
provide DSN name after the second colon.
In this way you are connected to your data base and you can futher query your database using statement object .
For futher help
mail adityabakle@gmail.com
No need to do much
I hope u are aware of JDBC-ODBC Driver and they are supported by sdk1.4
First create a DSN using ODBC in control pannel
later for JSP to connect to Database
use the following code
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = DriverManager.getConnection("jdbc:odbc:<DSN name>")
%
provide DSN name after the second colon.
In this way you are connected to your data base and you can futher query your database using statement object .
For futher help
mail adityabakle@gmail.com
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
- JSP using Oracle Database (JSP)
- how to access the database within same jsp page (JSP)
- Problem with database connection (JSP)
- Please help me in connecting JSP to MySql (JSP)
- jsp code for values from database to textbox (JSP)
- error due to accessing database connection using jsp (JSP)
- connecting jsp with oracle database (JSP)
Other Threads in the JSP Forum
- Previous Thread: Jsp doesnt return parameter value
- Next Thread: call resultset in join query


Linear Mode