Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Developer's Guide

- Previous: service-ref-name
- Next: servlet-impl-class

## 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 A–104 `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.

- Previous: service-ref-name
- Next: servlet-impl-class

- © 2010, Oracle Corporation and/or its affiliates