This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes how to connect SQL database in servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to connect SQL database in servlet?" Watch "how to connect SQL database in servlet?" New topic
Author

how to connect SQL database in servlet?

Mellihoney Michael
Ranch Hand

Joined: Nov 27, 2002
Posts: 124
Hi:

I am beginning to use web logic to development web applications. The question is how to connect SQL database in servlet? I have heard about the Oracle database connection and retrieval in J2EE, so can I connect to my SQL database in web logic?

Cheers
Mic


a beginner in java
Graham Thorpe
Ranch Hand

Joined: Mar 25, 2002
Posts: 265
yes u can connect sql also through weblogic.
First u get the sql driver class and URl then u can apply at weblogic console and also u must and should set the classpath for ur sql driver.
sidharth nayak
Greenhorn

Joined: Aug 29, 2004
Posts: 6
try jdbc instead..

there are 6 simple steps given in all books


sidharth
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to connect SQL database in servlet?
 
Similar Threads
struts 1 connection to sql server 2005
connecting jsp page with sql
shift booking app
JDBC with MSsql server without DSN
Servlet Between Application and SQL Server