JavaDeploy
SiteMap
JSP - Servlets
JDBC
EJB Concepts
Entity Beans
JDBC
«Prev
Servlet Intro
Java Servlets
HTTP Stateless Information
Problems with CGI
Java Servlet Advantages.
Servlet GET Requests
Software Configuration
Java Servlet Development Kit
Configuring JSDK
Text Editor
JSDK Server
Java Web Server
Installing Java Web Server
Testing Administering Web Server
Other Web Servers
Non Servlet Server Add Ons
Webserver Config Conlusion
Servlet Page Generation
doGet Servlet Method.
Simple Servlet generates HTML
Generating Page from Servlet
Maintaining Servlet State
HTML Form Creation
Form Servlet Communication
Generating Servlet Form
Start Web Server
Processing Servlet Form
Web Page Generation
Servlet Database Connection
What Is JDBC
JDBC Servlets
SQL Commands
JDBC Data Source
JDBC Connection
Datasource Java
Read Data From Resultset
JDBC Resultset Example
Write To Database
Servlet Operations Conclusion
Applet Servlet Interaction
Java Browser Versions
Java Applet Tutorial
Send Get Servlet
Connect Server Get Request
Servlet Receives Get Request
Display Servlet Response
Reading Servlet Response
AppletServlet Communication Conclusion
Setting up JDBC[Data Source] - Exercise
Setting up A JDBC data source
Objective:
Create a data source to be used in later lessons.
Exercise scoring
This exercise is worth 2 points. The exercise is auto-scored, which means that all you have to do to receive credit for it is click the
Submit
button below.
Background/overview
Before your servlets can access a file on your hard drive, you must set up a data source. Since well be using the JDBC-ODBC bridge, you set up an ODBC data source.
Download files
You need to use the following file from the Exercise download: servletsample.mdb (The starter database).
Instructions
Bring up the control panel, then ODBC or 32-bit ODBC (its the same product, with different names in different versions of Windows.).
On the System DSN tab, click Add.
Choose the Microsoft Access Driver, and click Finish.
Enter the name of the DSN,
javadeploy.com
, and a sensible description.
Click Select, and browse to the directory where you downloaded the sample database.
Click OK to see your new DSN included on the System DSN tab.