<%-- http://localhost:8080/bio2rdf/jsp-bio2rdf/xml2rdf.jsp?lsid=path:mmu00010 http://localhost:8080/bio2rdf/path:mmu00010 http://localhost:8080/bio2rdf/jsp-bio2rdf/xml2rdf.jsp?lsid=path:mmu00010 http://localhost:8080/bio2rdf/path:mmu00010 --%> <%@ page contentType="application/rdf+xml;charset=UTF-8" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %> <% String lsid = request.getParameter("lsid"); String ns = lsid.substring(0,lsid.lastIndexOf(':')); String id = lsid.substring(lsid.lastIndexOf(':')+1,lsid.length()); String basePath = "http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/"; String dataPath = basePath + "data/" + lsid; String xsltPath = basePath + "xsl/" + ns; %> <%-- --%> <%= dataPath %> <%= xsltPath %>