Ajax is a technique, not
a technology. As an example, suppose a user fills out a form to add data to
a database table. Without Ajax, the validity of data in the form is not
checked till the form is submitted. With Ajax, the data added to the form is
dynamically validated as the data is added to form fields using business
logic in a server side application. Thus, a complete form does not have to
be posted to the server to check if data added in the form is valid. In this
chapter we shall create a web application using Ajax in JDeveloper 11g to
validate an input form.
2.2 Setting the Environment
Install JDeveloper 11g1 if not already installed. To install JDeveloper 11g
download the zip file for JDeveloper 11g and unzip the zip file to the
C:/JDeveloper11g directory. The preconfigured paths in JDeveloper 11g
require that JDeveloper be installed in the JDeveloper11g directory. First,
create a JDeveloper application and project with File>New. In the New
Gallery window select General in Categories and Application in Items.
Click on OK. In the Create Application window specify the Application
Name and click on OK. In the Create Project window specify the
Project Name and click on OK. A JDeveloper application and project get
added to Application Navigator as shown in Fig. 2.1.
1JDeveloper11g-http://www.oracle.com/technology/software/products/
jdev/htdocs/soft11tp.html
20 2 Developing an Ajax Web Application
Fig.
Pages:
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43