sun-web.xml Visual Editor: Cache Mappings

See Also

The sun-web.xml visual editor lets you edit the platform-specific web deployment descriptor for Sun Java System Application Server. You open the visual editor by expanding your project's Configuration Files node in the Projects window and double-clicking the sun-web.xml file. A web application only contains a sun-web.xml deployment descriptor if its target server is the Sun Java System Application Server.

Cache mapping involves mapping a URL pattern or a servlet name to its cacheability constraints. A web application may have zero to many such cache mappings. The Cache Mappings tab allows you to add and modify cache mappings.

Cache Mappings

Use the Cache Mappings panel to create cache mappings. To create a mapping, click the Add button next to the panel.

Name Description
Cache Target Can be either a ServletName or a URL pattern.
Target Value Name of the servlet or the URL depending on your selection in the Cache Target column.
Cache Reference Indicates whether this target is a Cache Policy Reference or a Cache Helper Reference.
Reference Value Indicates the policy value.

Cache Target

The cache target can be either the first servlet name from the web application's list of servlets or the URL pattern if there are no servlets. Select the radio button for either Servlet Name or URL Pattern.

Cache Reference

The cache reference can be either a cache helper or a policy. Select the radio button for either Cache Helper or Policy.
See Also
About Deployment Descriptors
Editing a Web Application's Deployment Descriptors
Changing the Target Server
sun-web.xml Visual Editor:
         General
         Session
         Messages
         Locale
         Web Service Descriptor

Legal Notices