Java Reference
In-Depth Information
However, just as with the client-based application, the correct database driver needs to be available for the
Employee class. If DB2 or Oracle is being used, the driver must be added to the Web App Libraries in the project's Java
build path.
11.
If the DBMS is DB2 or Oracle, import or copy the DBMS driver file into the WebContent/
WEB-INF/lib folder (if the folder lib does not exist, create it).
12.
If the DBMS is Oracle, change the suffix of the driver file from .zip to .jar.
13.
To prove that the driver was added successfully, right click TutorialsWeb and select
Properties.
14.
At the Properties for TutorialsWeb window, select Java Build Path, then expand the Web
App Libraries item.
The driver file should appear as in Figure 11-12 .
Figure 11-12.
If you are using an Access database, you will have to move the database on to the RAD test server. Access
databases cannot be accessed remotely, so they must reside on the server.
15. If you are using Access, copy the TNT.mdb file to the folder containing the RAD test
server. For example, if you have a standard installation of RAD with one test server, the
server definition would be in C:\Program Files\IBM\SDP70\runtimes\base_v8\profiles\
AppSrv01.
If you can't figure out the location of the server definition, after we create and implement the insert tag, simply
run the insert JSP and try to insert an employee. The resulting error messages will display the folder location.
 
Search WWH ::




Custom Search