{
try {
Map lspParams = new HashMap();
lspParams.put("dirlist",
new String[] { "first file", "second file", "third file" });
LSPPage thePage = lspManager.getPage("dirlist");
lspManager.executePage(thePage, lspParams, "dir.xsl", req, resp);
}
catch (org.xml.sax.SAXException e)
{
throw new ServletException(e);
}
catch (javax.xml.transform.TransformerConfigurationException e)
{
throw new ServletException(e);
}
}
else if (function.equals("/XSLTEXT"))
{
req.getSession(true);
try {
Map lspParams = new HashMap();
LSPPage thePage = lspManager.getPage("xsltext");
lspManager.executePage(thePage, lspParams, "extlib.xsl", req, resp);
}
catch (org.xml.sax.SAXException e)
{
throw new ServletException(e);