uCosminexus Application Server, API Reference Guide

[Contents][Index][Back][Next]

2.8.9 @WebServlet

Organization of this subsection
(1) Description
(2) Attribute

(1) Description

This annotation specifies Servlet.

(2) Attribute

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:

(a) description attributes

Type
String

Description
This attribute specifies the Servlet description.

Default value
""
(b) displayName attributes

Type
String

Description
This attribute specifies the display name.

Default value
""
(c) initParams attributes

Type
WebInitParam[]

Description
This attribute specifies the initial parameters for Servlet.

Default value
{}
(d) largeIcon attributes

Type
String

Description
This attribute specifies the large icons used on the GUI tool.

Default value
""
(e) loadOnStartup attributes

Type
int

Description
This attribute specifies the start order of Servlet.

Default value
-1
(f) name attributes

Type
String

Description
This attribute specifies the Servlet name.

Default value
""
(g) smallIcon attributes

Type
String

Description
This attribute specifies the small icons used on the GUI tool.

Default value
""
(h) urlPatterns attributes

Type
String[]

Description
This attribute specifies the URL patterns to be mapped.

Default value
{}
(i) value attributes

Type
String[]

Description
This attribute specifies the URL patterns to be mapped. Ignored if specified concurrently with urlPatterns.

Default value
{}