Oracle GlassFish Server 3.0.1 Application Deployment Guide

servlet

Specifies a principal name for a servlet. Used for the run-as role defined in web.xml.

Superelements

sun-web-app (sun-web.xml)

Subelements

The following table describes subelements for the servlet element.

Table C–133 servlet Subelements

Element 

Required 

Description 

servlet-name

only one 

Contains the name of a servlet, which is matched to a servlet-name in web.xml.

principal-name

zero or one 

Contains a principal (user) name in the current realm. 

webservice-endpoint

zero or more 

Specifies information about a web service endpoint.