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

Subelements

The following table describes subelements for the sun-web-app 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–5 sun-web-app Subelements

Element  

Required  

Description  

sun-web-appsun-web-app

zero or more 

Maps roles to users or groups in the currently active realm. 

servletservlet

zero or more 

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

session-config

zero or one 

Specifies session manager, session cookie, and other session-related information. 

resource-env-ref

zero or more 

Maps the absolute JNDI name to the resource-env-ref in the corresponding J2SE XML file.

resource-ref

zero or more 

Maps the absolute JNDI name to the resource-ref in the corresponding J2SE XML file.

cache

zero or one 

Configures caching for web application components. 

class-loader

zero or one 

Specifies classloader configuration information. 

jsp-config

zero or one 

Specifies JSP configuration information. 

locale-charset-info

zero or one 

Specifies internationalization settings. 

propertyproperty

zero or more 

Specifies a property, which contains a name and a value.