SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 98 | Next

Deepak Vohra

"Ajax in Oracle JDeveloper"

A new application and project get added as shown in Fig.
6.1.
Fig. 6.1 AjaxTags Application
Next, create a JDBC connection in JDeveloper with Oracle database.
Select View>Database Navigator to display the Database Navigator.
Right-click on the AjaxTags node and select New Connection, as shown
in Fig. 6.2, to create a new database connection with Oracle database.
6.2 Setting the Environment 109
Fig. 6.2 Creating a New Connection
In the Create Database Connection window specify a Connection
Name and select Connection Type as Oracle (JDBC). Specify a
Username and Password and specify SID as ORCL. Driver is the thin
driver, Hostname is localhost, and JDBC Port is 1521 by default. Click
on Test Connection to test the connection. If a connection gets established
a ???Success??? message gets displayed. Click on OK as shown in Fig. 6.3.
110 6 Ajax without JavaScript ??“ AjaxTags
Fig. 6.3 Specifying Connection Parameters
An AjaxTagsConnection connection, which is available as a JNDI
resource jdbc/AjaxTagsConnectionDS, gets added to the Database
Navigator as shown in Fig. 6.4.
Fig. 6.4 Connection for AjaxTags Application
6.3 Overview of AjaxTags 111
To the web.xml deployment descriptor we need to add the following
resource-ref definition, which is required to access the data source
from a web application.

jdbc/AjaxTagsConnectionDS<
res-type>javax.


Pages:
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110