By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,557 Members | 1,164 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,557 IT Pros & Developers. It's quick & easy.

How to connect Jsp with Databases

P: n/a
Hi all,

My pc has installed Tomcat5.0.12 and j2sdk1.4.2_03. I want to develop
jsp for my project. My question is that i want to access the database
such as oracle 9i or mysqL which is not install in my PC.They come
from web hosting company Should i need to install the jdbc driver in
my local PC in order to get the connection.Could anyone tell me some
basic steps that can use to find and set up the jdbc drivers.

Thx !

JSP Beginner
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
<ka*******@hotmail.com> wrote in message
news:d8**************************@posting.google.c om...
Hi all,

My pc has installed Tomcat5.0.12 and j2sdk1.4.2_03. I want to develop
jsp for my project. My question is that i want to access the database
such as oracle 9i or mysqL which is not install in my PC.They come
from web hosting company Should i need to install the jdbc driver in
my local PC in order to get the connection.Could anyone tell me some
basic steps that can use to find and set up the jdbc drivers.

Thx !

JSP Beginner


http://java.sun.com/docs/books/tutor...ics/index.html
Jul 17 '05 #2

P: n/a
There are many JDBC tutorials online. This is Sun's:
http://java.sun.com/docs/books/tutorial/jdbc/index.html

These two pages will get you up and running:
http://java.sun.com/docs/books/tutor...onnecting.html
http://java.sun.com/docs/books/tutor...etrieving.html

The only twist with JSP is getting the JDBC driver into the classpath.
I usually put the jar file in the /WEB-INF/libs directory.

-Nathan

ka*******@hotmail.com wrote in message news:<d8**************************@posting.google. com>...
Hi all,

My pc has installed Tomcat5.0.12 and j2sdk1.4.2_03. I want to develop
jsp for my project. My question is that i want to access the database
such as oracle 9i or mysqL which is not install in my PC.They come
from web hosting company Should i need to install the jdbc driver in
my local PC in order to get the connection.Could anyone tell me some
basic steps that can use to find and set up the jdbc drivers.

Thx !

JSP Beginner

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.