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

Deepak Vohra

"Ajax in Oracle JDeveloper"

To
the AjaxTags project add a JSP page, input.jsp, with File>New. In the
New Gallery window select Web Tier>JSP in Categories and JSP in
Items and click on OK. Specify File Name in the Create JSP window
and click on OK. Similarly, add JSPs error.jsp for error message, and
catalog.jsp for success message. For server side processing add a servlet,
FormServlet, by selecting Web Tier>Servlets in Categories and
HTTP Servlet in Items in the New Gallery window. Click on Next in
Create HTTP Servlet window. In the Servlet Information window
specify Class as FormServlet and click on Next. In the Mapping
Information window specify URL Pattern as /formservlet and click
on Next. Click on Finish in the Servlet Parameters window. Similarly,
add another servlet FormUpdateServlet with URL Pattern
/formupdateservlet. Add JAR files standard-1.0.6.jar, commonslang-
2.1.jar from the lib directory of the AjaxTags distribution and
ajaxtags-1.2-beta2.jar from the dist directory of the AjaxTags distribution
directory to the AjaxTags project libraries. To add the Jar files to the
project libraries select Tools>Project Properties and in the Project
Properties window select Libraries and add the JAR files with the Add
Jar/Directory button. Click on OK as shown in Fig. 6.5.
Fig. 6.5 AjaxTags Libraries
114 6 Ajax without JavaScript ??“ AjaxTags
Copy JavaScript files ajaxtags.js, overlibmws.js, prototype-1.


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