CacheVariable





Attributes Summary
type : CacheVariableKindOnly one option may be chosen.
id : StringThe name of the variable.
method : StringString, only available if Type is "Request Attribute" or "Session Parameter".
required : booleanhether this variables presence in the request/session is required to cache an invocation of this servlet.
dataId : StringThe data id string combines with the value of this variable to form a group id; thus, cache entries that have the same value for this variable will all be part of the same group.
invalidate : StringWorks just like data ids, except all members of the group generated will be removed from the cache.

Attribute Details

type    -    Only one option may be chosen. Type can either be "Request Parameter", "Request Attribute", or "Session Parameter". User data from an HTML form would be a Request Parameter, while a <jsp:useBean /> tag could be either a Request Attribute or a Session Parameter.
     data type: CacheVariableKind
     default Value:   unspecified
     Allowed Values:  REQUEST_PARAMETER   REQUEST_ATTRIBUTE   SESSION_PARAMETER   COOKIE  



id    -    The name of the variable. Equivalent to the "id" attribute in a <jsp:useBean />.
     data type:  String
     default Value:   unspecified



method    -    String, only available if Type is "Request Attribute" or "Session Parameter". Defaults to toString. Request Attributes and Session Parameters are actually Java objects, so a method must be called on that object to retrieve data for the cache to use. Only used if the type is REQUEST_ATTRIBUTE or SESSION_PARAMETER.
     data type:  String
     default Value:   unspecified



required    -    hether this variables presence in the request/session is required to cache an invocation of this servlet.
     data type: boolean
     default Value:   unspecified
     Allowed Values:  true   false  



dataId    -    The data id string combines with the value of this variable to form a group id; thus, cache entries that have the same value for this variable will all be part of the same group. This group can then be invalidated all at once.
     data type:  String
     default Value:   unspecified



invalidate    -    Works just like data ids, except all members of the group generated will be removed from the cache.
     data type:  String
     default Value:   unspecified


Copyright IBM Corp. 1997-2004