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

default-helper

Allows you to change the properties of the built-in default cache-helper class.

Subelements

The following table describes subelements for the default-helper 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–31 default-helper Subelements

Element  

Required  

Description  

property

zero or more 

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

Attributes

none

Properties

The following table describes properties for the default-helper element. The left column lists the property name, the middle column indicates the default value, and the right column describes what the property does.

Table 6–32 default-helper Properties

Property Name  

Default Value  

Description  

cacheKeyGeneratorAttrName

uses the built-in default cache-helper key generation, which concatenates the servlet path with key-field values, if any.

The caching engine searches in the ServletContext for an attribute with a name equal to the value specified for this property to determine whether a customized CacheKeyGenerator implementation is used. An application may provide a customized key generator rather than using the default helper.

For more information, see CacheKeyGenerator Interface