IntelliJ IDEA 2016.2 Help

Creating and Deleting Web Application Elements - General Steps

This topic describes general procedures for elements in a Web module.

To add an element to a Web module

  1. Open the Web tool window by choosing View | Tool Windows | Web. The tool window displays all the modules with Web facets.
  2. Right-click the desired Web module node and choose New | Servlet/Filter/Listener on the context menu.
  3. In the New Servlet/Filter/Listener dialog box that opens, type the name of the element.
  4. Specify the package where the element will be created.
  5. Specify the class that implements the element.
  6. Click OK. A new class is created and opened in the editor.
  7. Proceed as described in the relevant element-specific topic.

To remove an element from a Web application

  1. In the Web tool window, select the element to be removed.
  2. On the context menu, choose Delete and click Yes in the confirmation dialog box.

See Also

Procedures:

Last modified: 23 November 2016