IntelliJ IDEA 14.0.3 Help

Defining the Servlet Element

The Servlet element defines the name of the servlet and specifies the compiled class that implements it. Alternatively, instead of specifying a servlet class, you can specify a JSP.

The Servlet element also contains definitions of initialization attributes.

IntelliJ IDEA provides the facilities to configure, remove, and edit Servlet elements using the Web Module Editor window, General tab. The tab is synchronized with the Text tab where the code is generated based on the settings you specify.

Defining the Servlet element includes:

  • Specifying the servlet name and the name of the package where the servlet will be created.
  • Customizing the initialization process by specifying the initialization attributes of the servlet.
  • Specifying the context-initialization parameters of the servlet

To remove a servlet

  • Select the servlet in the Servlets Configured pane, tab General, and click delete or select Remove in the context menu.

See Also

Web Resources:

Last modified: 30 January 2015
comments powered by Disqus