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 33 | Next

Deepak Vohra

"Ajax in Oracle JDeveloper"

2.6.
Fig. 2.6 Specifying Servlet Class
In the Mapping Information window specify a servlet mapping
URL, /validateForm for example, and click on Next as shown in Fig.
2.7.
24 2 Developing an Ajax Web Application
Fig. 2.7 Specifying Servlet Mapping URL
In Servlet Parameters window, specify any servlet parameters if
required (none by default) and click on Finish. A HTTP Servlet gets added
to the Application Navigator. Ajax web application structure is shown in
Fig. 2.8.
Fig. 2.8 Ajax Web Application Directory Structure
2.2 Setting the Environment 25
Next, add some required libraries to the Ajax project with
Tools>Project Properties. In the Project Properties window select
Libraries and Classpath and click on Add Library. Add library Oracle
JDBC, which is required for Oracle database access. Click on OK in
Project Properties window as shown in Fig. 2.9.
Fig. 2.9 Adding a Library
The Ajax web application in this chapter retrieves data and updates data
in an Oracle database table. Install Oracle 10g database including the
sample schemas and a database instance ORCL. Create a database table
with SQL script listed below using SQL client SQL Plus or in command
line.
CREATE TABLE OE.Catalog(CatalogId VARCHAR(25),
Journal VARCHAR(25), Publisher Varchar(25), Edition
VARCHAR(25), Title Varchar(45), Author Varchar(25));
INSERT INTO OE.Catalog VALUES('catalog1', 'Oracle
Magazine', 'Oracle Publishing', 'Nov-Dec 2004',
'Database Resource Manager
', 'Kimberly Floss');
INSERT INTO OE.


Pages:
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6