Listing A: XSP example
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp">
<xsp:logic>
       private static int myCounter=0;
       private synchronized int getHitCount(){
        return ++myCounter;
       }
</xsp:logic>
<page>
<title>Hello</title>
<content>
<para>My XSP page has been accessed <xsp:expr>getHitCount()</xsp:expr>
times. Last request was on <xsp:expr>new Date()</xsp:expr>
</para>
</content>
</page>
</xsp:page>