This annotation specifies Servlet.
The following table lists the @WebServlet attributes:
Attribute Name | Functionality |
---|---|
description | This attribute specifies the Servlet description. |
displayName | This attribute specifies the display name. |
initParams | This attribute specifies the initial parameters for Servlet. |
largeIcon | This attribute specifies the large icons used on GUI tool. |
loadOnStartup | This attribute specifies the start order of Servlet. |
name | This attribute specifies the Servlet name. |
smallIcon | This attribute specifies the small icons used on the GUI tool. |
urlPatterns | This attribute specifies the URL patterns to be mapped. |
value | This attribute specifies the URL patterns to be mapped. Ignored if specified concurrently with urlPatterns. |
Details of each attribute are as follows: