Commits

Anonymous committed 9b67bf0

- added an example of the <cache:addgroup /> tag
- fixed TLD problem

  • Participants
  • Parent commits 2000a0f

Comments (0)

Files changed (3)

 
         <war destfile="${dist.dir}/${name}-example.war" basedir="${src.webapp}" webxml="${src.webapp}/WEB-INF/web.xml" excludes="WEB-INF/web.xml">
             <lib dir="${lib.dir}/core"/>
-            <lib file="${dist.dir}/${name}.jar"/>
+            <lib file="${dist.dir}/${name}_${version}${release}.jar"/>
+            <webinf file="${src.dir}/core/etc/oscache.tld"/> 
             <classes dir="${build.dir}/webapp"/>
         </war>
     </target>

src/webapp/WEB-INF/web.xml

 
     <taglib>
         <taglib-uri>oscache</taglib-uri>
-        <taglib-location>/WEB-INF/lib/oscache.jar</taglib-location>
+        <taglib-location>/WEB-INF/oscache.tld</taglib-location>
     </taglib>
 
 </web-app>

src/webapp/groupTest.jsp

     This is some cache content that is in 'group1' (refreshes if more than 5 seconds old)<br>
 </cache:cache>
 <hr>
+<cache:cache key='test3' duration='20s'>
+    <b>Cache Time</b>: <%= (new Date()).getTime() %><br>
+    This is some cache content that is in 'group1' and 'group2'. The groups are added using the &lt;cache:addgroup /&gt; tag.<br>
+    <cache:addgroup group='group1'/>
+    <cache:addgroup group='group2'/>
+</cache:cache>
+<hr>
 </body>
 </html>