Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


Divya
oscache
1 Answer(s)      5 years and 6 months ago
Posted in : Framework



Advertisement
View Answers

February 13, 2009 at 12:39 AM


Hi friend,

Code to help in solving the problem :

Do mapping in the web.xml for caching:

<filter>
<filter-name>CacheFilter</filter-name>
<filter-class>com.opensymphony.oscache.web.filter.CacheFilter</filter-class>
<init-param>
<param-name>time</param-name>
<param-value>600</param-value>
</init-param>
<init-param>
<param-name>scope</param-name>
<param-value>session</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>CacheFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>

Thanks


Related Tutorials/Questions & Answers:
oscache - Framework
oscache  Hi, I want to cache simple java objects using oscache api. e.g. After fetching data from databse, i want to cache the result in a list and whenever i make the hit to same set of data then the data shoiuld come from
JSP
JSP  how did you implement caching in jsp   OSCache is an open-source caching library that's available free of charge from theOpenSymphony organization. OSCache has a set of JSP tags that make it easy to implement page
Advertisements
Advertisements
 

 

 

DMCA.com