In this section, we shall
create a web project in Eclipse. Go to File | New | Other and in the New wizard, expand Web and select Dynamic Web Project. Click on Next. Specify a Project Name (for example, EclipseAjax
) and configure a Target Runtime for Oracle WebLogic Server 12c as discussed in Chapter 1, EJB 3.0 Database Persistence. Select the Dynamic web module version as 2.5 and click on Next as shown in the following screenshot:
In Java Settings,
select Source folders on build path as src, and the default output folder as build/classes
and click on Next. In Web Module specify the Context Root as EclipseAjax, specify the ContentDirectory as WebContent and select the checkbox Generate web.xml deployment descriptor and click on Finish. A Dynamic Web project for AJAX gets created and gets added to the Project Explorer as shown in the following screenshot:
As JavaScript is used in sending an AJAX request and processing the AJAX response, the JavaScript project...