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

Deepak Vohra

"Ajax in Oracle JDeveloper"

2.1 JDeveloper Application and Project
In the project add a JSP file, input.jsp, with File>New. In the New
Gallery window select Web Tier>JSP in Categories and JSP in Items as
shown in Fig. 2.2. Click on OK.
Fig. 2.2 Creating a JSP
2.2 Setting the Environment 21
In the JSP File window specify a file name and click on OK. JSP
input.jsp gets added to Application Navigator as shown in Fig. 2.3.
Fig. 2.3 New JSP in Application Navigator
The input.jsp JSP provides the client side of the Ajax web application.
Similarly, add JSPs catalog.jsp and error.jsp for redirecting client
application based on if the Ajax web application generates an error in
creating a catalog entry. Next, create a JavaScript file input.js with
File>New. In the New Gallery window select Web Tier>HTML in
Categories and JavaScript File in Items and click on OK as shown in
Fig. 2.4.
22 2 Developing an Ajax Web Application
Fig. 2.4 Creating a JavaScript File
In the Create JavaScript File window specify File Name as input.js
and click on OK. JavaScript file input.js gets added to Application
Navigator. For server side processing, add a HTTP Servlet with
File>New. In the New Gallery window select Web Tier>Servlets in
Categories and HTTP Servlet in Items and click on OK as in Fig. 2.5.
Fig. 2.5 Creating a Servlet
2.2 Setting the Environment 23
Click on Next in Create HTTP Servlet Wizard. In Servlet
Information window, specify a Servlet name,
FormValidationServlet, and click on Next as shown in Fig.


Pages:
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44