[Opensymphony-oscache] Caching same object in different jsp pages

Russ Ray <[email protected]> Thu, 02 Jun 2005 17:09:15 CDT
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <25513776.1117750188910.JavaMail.os-j2ee@opensymphony01.contegix.com>
I am working through the different ways one can use the oscache tool for caching information.    The scenario I am using is a very simple one.  We have a department list we want to cache.  When we enter the application we go to page #1.  Here we identify the object for caching using the taglib.  Next, we navigate to another page #2, and again, we have the department list.  Instead of going to the database the second time for the department list, we would like to cache it.  

The way I see this being accomplished is using the API to cache the department information at a centralize class where both jsp pages gain their department information.

Is this correct or is there another way to cache the department list used by two different jsp pages?

Thank you for taking the time to read my post.

Russ

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=2897&messageID=7855#7855