hi guys!! i am new in the java i had facing one problem can you teach me a connectivity in database using java server pages technology
thanks : can you give me connectivity code?
please..reply..
Shinelin Samuel
Ranch Hand
Joined: Mar 01, 2010
Posts: 55
posted
0
What is your Database, you have to use the JDBC driver for thr database you are using. Here is the code snippet for JDBC connection for MYSQL database,
Shinelin Samuel wrote:
What is your Database, you have to use the JDBC driver for thr database you are using. Here is the code snippet for JDBC connection for MYSQL database,
Go google my friend
... though if you are using a Servlet container (as you must be if you are using JSPs) you might prefer using a DataSource. (Not sure what that is? Have a read through this)
I am using windows and running Tomcat 6.0.24.
Is there any need to add any db etc in odbc?
I am trying to connect a servlet to database.
Please anyone tell me the configuration to be done..