The "listdir.jsp" file in the ListDir directory implements this. It includes the following code.
<itp:XSLT name="makelist.xsl">
<itp:ServerCall name="listdir" type="online" value="info">
<itp:ServerParameter>${param.dir}</itp:ServerParameter>
</itp:ServerCall>
</itp:XSLT>
Here, the "ServerCall" tag calls the ITP/Server service "listdir", passing in the JSP "dir" parameter via a "ServerParameter" sub-element. The ITP/Server listdir service will produce an XML listing of the requested directory. The entire "ServerCall" tag will get replaced by this XML data.
The only thing that remains, is converting the XML data to HTML. ITP/OnLine provides an XSLT tag that applies an XSL-T file to its body. In the JSP page above, the XML list gets transformed by "makelist.xsl" into an HTML list. The body of the resulting HTML code looks as follows.
<ul xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<li>c:\itpwork - 3.2\Config</li>
<li>c:\itpwork - 3.2\Data</li>
<li>c:\itpwork - 3.2\DID</li>
<li>c:\itpwork - 3.2\Log</li>
…
</ul>