struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <>
Subject RE: Session management for cached resources
Date Thu, 03 Oct 2002 02:14:07 GMT
Im doing something rather like this, only I called it an "OperationContext"
which comprises a hashtable of attributes and an id to store it under in the
session (passed in the request). I simply overrode the RequestProcessor so
it knew to look for an actionform in the OperationContext first if the form
scope is session.
Works quite nicely.

-----Original Message-----
From: James A. Hillyerd []
Sent: Thursday, October 03, 2002 03:52
To: Struts Users Mailing List
Subject: Session management for cached resources

Hi all,

The Struts Catalog mentions a technique for providing session
management for cached resources (a Resource Cache):

"Most Web applications require use of a workflow, and need to save
ActionForms and other attributes for future use. These items may also
need to be released in a block when the workflow completes. A convenient
way to handle this is to define a "Resource Cache". This can simply be a
hash map that uses a wrapper object to manage its items. The wrapper
object can include a named "scope", a property to indicate whether the
item is permanent or temporary, and a counter. To keep the cache
manageable, a threshold can be set, and the oldest temporary items
removed when the threshold is reached and a new item needs to be added."

( from )

I can't find any information in the archives or online about
implementing something like this.  It seems like it would be difficult
to integrate with struts. How would struts handle having it's form beans
nested within this "Resource Cache" object?



[]  James A. Hillyerd <> - Java Software Engineer
[]  PGP 1024D/D31BC40D F87B 7906 C0DA 32E8 B8F6 DE23 FBF6 4712 D31B C40D

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message