Hi,
I was trying to find out how I can cache a XSP-page. But the message
"..served form cache.." is not in the bottom of my pages. So... does anyone
have a working example that they would like to share? I have looked in the
"Cache documentation", but I need a full working example.

Below is my try - There are no errors but also no cache.
/Bjarne

<?xml version="1.0" encoding="iso-8859-1"?>
 <?cocoon-process type="xsp"?>
 <xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core";
 xmlns:util="http://www.apache.org/1999/XSP/Util";>
 <xsp:structure>
                <util:cacheable/>
 </xsp:structure>
 <xsp:logic>
          public boolean hasChanged (Object context) {
                return false;
          }
 </xsp:logic>

  <html>
        <xsp:logic>
        // Define a variable to hold the time of day
       Date now = new Date();
        </xsp:logic>

     <p>
       To the best of my knowledge, it's now
       <!-- Substitute time of day here -->
       <xsp:expr>now</xsp:expr>
     </p>
        </html>
 </xsp:page>




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to