1. Add a cache
1) Login to the portal administrator console.
2) Choose Configuration Settings > Service Administration.
3) Select the Cache Manager node in the tree.
4) In the Browse tab, click Add Cache.
5) Enter the name of the cache.
6) Optionally, enter or modify the default cache configuration settings.
7) Click Update.
2. Use the cache in JSP
To understand the cache easily, Please take the following sample。
1) Create a tag to use the cache.
Following is the source of the tag:
//CacheContentTag
































































































Define the TLD file:
//myTag.tld file


































Add this TLD file to /WEB-INF/tld/
Define the taglib to web.xml file









2) Use the CacheContent Tag in JSP
Create the test.jsp in WebContent/
The source of test.jsp:











Run this JSP in web server:
Change the value of test. <%String test = "change test cache value"; %> and refresh the JSP:

Change this line <my:cache name="test" cacheName="testCache"> to
<my:cache name="test" cacheName="testCache" flush="true"> and refresh the JSP:

3. Reference
You can use the Cache tag which is defined in weblogic-tags.jar by weblogic to implement cache.
Find the reference article by