Next, most likely you will need to configure Web application elements, set initialization parameters, and define interaction with EJB, WebServices, and so on. You will need various libraries to configure these components and relations and an application descriptor that contains definitions of these components, settings, and constraints.
With IntelliJ IDEA, you can have the basic application structure automatically set up according to the required standard and get extensive coding assistance at all the stages of Web application development.
Developing Web applications
Enable Web application development support to get the necessary libraries, the basic folder hierarchy, and the application descriptor.
Populate the Web module: create the required Java classes, configure servlets, filters, listeners, and references.
Deploy and run the application.