%@ page import="java.io.File,java.io.FilenameFilter,java.util.Arrays"%> <%@ page trimDirectiveWhitespaces="true" %> <%@ page import="org.crosswire.utils.Utils" %> <%@ page import="org.crosswire.xml.XMLBlock" %> <%@ page import="org.crosswire.utils.HTTPUtils" %> <% String dir = request.getParameter("dir"); if (dir == null) { return; } String key = null; int keySlash = dir.indexOf("/"); if (keySlash > 0) key = dir.substring(0, keySlash); if (key == null) { return; } if (key.startsWith("http")) { key = null; } else { dir = dir.substring(keySlash); } dir = java.net.URLDecoder.decode(dir, "UTF-8"); if ("/".equals(dir)) { StringBuffer result = HTTPUtils.postURL("http://www.csntm.org/API/GetManuscriptsAsXml_v1", "apiKey="+key, HTTPUtils.GET); XMLBlock manuscripts = XMLBlock.createXMLBlock(result.toString()); out.print("