These tags are used to specify information about web application components (servlets, filters & listeners). They are used in generating the WEB-INF/web.xml file.
Applies to: Servlet, Filter, Listener, JSP and JAXRPC Tags
Defines a local EJB reference with the specified name, type, home interface name, local interface name, link name, and description. The value of the link parameter must be the ejb-name of an enterprise bean in the same J2EE application unit.
Applies to: Servlet
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
name | text | The name of the ejb reference | false | |
type | text | The expected type of the referenced
enterprise bean. Must be one of the following: Entity or Session Valid options are: Entity Session | false | |
home | text | The home interface of the referenced ejb | false | |
local | text | The local interface of the referenced ejb | false | |
link | text | The link to the EJB | false | |
description | text | An optional description for the ejb-ref | false |
Defines a remote EJB reference with the specified name, type, home interface name, remote interface name, link name, and description. The value of the link parameter must be the ejb-name of an enterprise bean in the same J2EE application unit
Applies to: Servlet
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
name | text | The name of the ejb reference | false | |
type | text | The expected type of the referenced
enterprise bean. Must be one of the following: Entity or Session Valid options are: Entity Session | false | |
home | text | The home interface of the referenced ejb | false | |
remote | text | The remote interface of the referenced ejb | false | |
link | text | The link to the EJB | false | |
description | text | An optional description for the ejb-ref | false |
Defines a environment entry with the specified description, name, type and value
Applies to: Servlet
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
description | text | A description of the env-entry | false | |
name | text | The name of the env-entry | true | |
type | text | The type of the env-entry | true | |
value | text | The value of the env-entry | false |
Declares the class as a Filter class, with the specified name, display-name, icon and description. Applicable to Servlet 2.3 only
Applies to: Filter
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
name | text | The name for the filter. Unique within the application | true | |
display-name | text | The display name of the filter | false | |
icon | text | The icon for the filter | false | |
description | text | A description for the filter | false |
Declares init parameters for the Filter with the specified parameter name, value and description. Applicable to Servlet 2.3 only.
Applies to: Filter
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
name | text | The name of the init parameter | true | |
value | text | The value for the parameter | false | |
description | text | An optional description of the parameter | false |
Defines the mapping for the Filter. Either url-pattern or servlet-name should be specified. Applicable to Servlet 2.3 only. With Servlet 2.4 it is also possible to specify a comma-separated list of dispatchers.
Applies to: Filter
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
url-pattern | text | The url pattern the filter should match | false | |
servlet-name | text | The servlet name for the filter | false | |
dispatcher | text | The request dispatchers which should consider the filter | false |
Defines a resource environment reference with the specified name, type and description
Applies to: Servlet
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
name | text | The name of the resource environment reference | true | |
type | text | The type of the referenced resource | true | |
description | text | An optional description of the resource reference | false |
Defines a resource reference with the specified name, type, description, authentication (auth) and scope
Applies to: Servlet
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
name | text | The name of the resource reference | true | |
type | text | The type of the referenced resource | true | |
auth | text | The authentication for the resource. "Application" | "Container" Valid options are: Application Container | true | |
description | text | An optional description for the resource reference | false | |
scope | text | The scope of the resource. "Shareable" | "Unshareable" Valid options are: Shareable Unshareable | false | |
jndi-name | text | The physical jndi-name of the resource. Note: it currently is used only in 1-2 of the app server modules, but those modules will also support this consolidated standard tag soon. | false |
Defines a security role with the specified role-name and description
Applies to: Servlet
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
role-name | text | The role name | false | |
description | text | The description of the role | false |
Defines a security role reference with the name role-name to a security role link named role-link
Applies to: Servlet
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
role-name | text | The name of the role reference | true | |
role-link | text | The name of the role link | true |
Declares the class as a Servlet class, with the specified name, display-name, icon and description. As of Servlet 2.4, the servlet class may also an arbitrary jaxrpc bean that is to be exposed as a web service endpoint.
Applies to: Servlet
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
name | text | The name of the servlet - unique within the application | true | |
display-name | text | The display name of the servlet | false | |
icon | text | The icon for the servlet | false | |
description | text | A description for the servlet | false | |
service-endpoint-class | text | JAXRPC beans | fully qualified name of the service endpoint interface | false |
service-endpoint-extends | text |
Declare which interface the generated
service-endpoint interface should extend. Default is
"java.rmi.Remote".
Default value(s): java.rmi.Remote | false | |
service-endpoint-package | text | JAXRPC Beans | The package the service-endpoint interface should be in - only used where service-endpoint-class is not present. Use <packageSubstitution/> to configure which package the interface should end up in. | false |
service-endpoint-pattern | text | Session beans, EJB 2.1 | The pattern to be used in determining the unqualified name of the service-endpoint interface - only used if service-endpoint-class is not present. | false |
service-endpoint-business-interface | text | JAXRPC beans | Defines the service-endpoint business interface for the bean. Similar to remote-business-interface. | false |
load-on-startup | text | Integer indicating order in which the servlet should be loaded. | false | |
run-as | text | Specifies the run-as identity (the name of a security role) to be used for the execution of the web application. | false |
Declares init parameters for the Servlet with the specified parameter name, value and description
Applies to: Servlet
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
name | text | The name of the init parameter | true | |
value | text | The value for the parameter | false | |
description | text | An optional description of the parameter | false |
These tags are used to give information about JSP custom tags and tag library validators, used in generating the tag library descriptor (TLD) file.
Applies to: JSP Tag or Tag Library Validator
Declares the class as a class implementing a JSP tag and specifies various properties of that tag
Applies to: Tag
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
name | text | The name of the JSP tag | true | |
tei-class | text | The tei class for the JSP | false | |
body-content | text | The body content field for the tag. Valid options are: tagdependent JSP empty Default value(s): JSP | false | |
display-name | text | An optional display name for the tag | false | |
small-icon | text | An optional small icon for the tag | false | |
large-icon | text | An optional large icon for the tag | false | |
description | text | An optional description for the tag | false |
Declares init parameters for the Validator with the specified parameter name, value and description
Applies to: Tag Library Validator
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
name | text | The name of the validator init param | true | |
value | text | The value of the validator init param | true | |
description | text | An optional description for the validator | false |
Declares a JSP tag variable and information on the scripting variables defined.
Applies to: Tag
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
name-given | text | The variable name as a constant | false | |
name-from-attribute | text | The name of an attribute whose (translation time) value will give the name of the variable. One of name-given or name-from-attribute is required | false | |
class | text | Name of the class of the variable.
java.lang.String is default Default value(s): java.lang.String | false | |
declare | bool | Whether the variable is declared or not. Default value(s): true | false | |
scope | text | The scope of the scripting variable defined. Valid options are: NESTED AT_BEGIN AT_END Default value(s): NESTED | false | |
description | text | An optional description of the variable | false |
Declares the specified field a JSP tag attribute. This tag should be placed on getter methods
Applies to: Tag
Parameter | Type | Applicability | Description | Mandatory |
---|---|---|---|---|
required | bool | Whether the attribute is required | true | |
rtexprvalue | bool | Whether the attribute is a runtime attribute | true | |
type | text | The type of the attribute | true | |
description | text | An optional description of the attribute | false |