Commits

Anonymous committed 26fafdc

This commit was manufactured by cvs2svn to create branch 'os'.

  • Participants
  • Parent commits 425ff3e
  • Branches os

Comments (0)

Files changed (2)

File src/webapp/oscacheTest.jsp

+<%@ page import="java.util.*" %>
+<%@ taglib uri="oscache" prefix="cache" %>
+
+<%
+String scope = "application";
+if (request.getParameter("scope") != null)
+{
+	scope = request.getParameter("scope");
+}
+
+boolean refresh = false;
+if (request.getParameter("refresh") != null)
+{
+	refresh = true;
+}
+
+boolean forcecacheuse = false;
+if (request.getParameter("forcecacheuse") != null)
+{
+	forcecacheuse = true ;
+}
+%>
+<head>
+<title>Test Page</title>
+<style type="text/css">
+body {font-family: Arial, Verdana, Geneva, Helvetica, sans-serif}
+</style>
+</head>
+<body>
+
+<a href="<%= request.getContextPath() %>/">Back to index</a><p>
+<hr>
+ <cache:cache
+	refresh='<%= refresh %>'
+	scope="<%= scope %>"
+	key="oscacheTest"
+	duration="2s">
+
+	<b>Cache Time</b>: <%= new Date() %><br>
+
+	<b>This is some cache content (refresh = 2 seconds)</b><br><br>
+	<%
+	if (forcecacheuse)
+	{
+	%>
+		<cache:usecached />
+	<%
+	}
+	%>
+</cache:cache>
+</body>
+</html>

File src/webapp/silentTest.jsp

+<%@ page import="java.util.*" %>
+<%@ taglib uri="oscache" prefix="cache" %>
+
+<head>
+<title>Test Page - Silent Mode</title>
+<style type="text/css">
+body {font-family: Arial, Verdana, Geneva, Helvetica, sans-serif}
+</style>
+</head>
+<body>
+
+<a href="<%= request.getContextPath() %>/">Back to index</a><p>
+<hr>
+
+Testing the silent attribute...<br/>
+<cache:cache key="silentTest" mode="silent" duration="10s">
+This content was inserted into the cache silently. Duration = 10 seconds. Current time = <%= new Date() %>
+</cache:cache>
+<br/>Some content has been silently cached<br/>
+<hr>
+<cache:cache key="silentTest">
+You should never get to see this text!
+</cache:cache>
+
+</body>
+</html>