IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Define the servlet element

Last modified: 29 November 2022

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 IntelliJ IDEA editor.

Note that you can map URL pattern that associates the servlet with the set of URLs that call the servlet using annotations in the editor.