Creating a user interface

An Ajax request is initiated in a browser from a web page. In this section, we will create the user interface for the Ajax application. To initiate an Ajax request, JavaScript is required, for which we will create a JSP page. We have used JSP, but another user interface technology, such as JSF, can be used instead. Select File | New | Other, and in New, select Web | JSP File and click on Next.

In the New JSP File wizard, select the webapp folder, specify File name (ajaxJBoss.jsp), and click on Next, as shown in the following screenshot:

Creating a user interface

In Select JSP Template, select the New JSP File (html) template, and click on Finish ...

Get Advanced Java® EE Development with WildFly® now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.