In this section, we will create a servlet to process an Ajax request. Select File | New | Other, and in New, select Web | Servlet, which is shown as follows. Then, click on Next.
The Create Servlet wizard gets started. Select Project as
jboss-ajax, Source folder as
src\main\java, Java package as
org.jboss.ajax.controller, Class name as
AjaxFormServlet, and Superclass as
javax.servlet.http.HttpServlet, as shown in the following screenshot. Then click on Next.
Specify URL mappings as
AjaxFormServlet and click on Next, as shown in the ...