Sun Java System Web Server 6.1 SP9 Programmer's Guide to Web Applications

servlet

Specifies a principal name for a servlet, which is used for the run-as role defined in web-xml.

Subelements

The following table describes subelements for the servlet element. The left column lists the subelement name, the middle column indicates the requirement rule, and the right column describes what the element does.

Table 6–10 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

only one 

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

Attributes

none