changeset 1220:cde51f04895c

added changes to api/dirInfo
author robcast
date Tue, 01 Oct 2013 12:27:12 +0200
parents 74363771603f
children e051fca597db
files webapp/src/main/webapp/api/dirInfo-xml.jsp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/api/dirInfo-xml.jsp	Tue Oct 01 12:24:29 2013 +0200
+++ b/webapp/src/main/webapp/api/dirInfo-xml.jsp	Tue Oct 01 12:27:12 2013 +0200
@@ -40,7 +40,7 @@
         System.out.println(e);
     }
 }
-%><?xml version="1.0" encoding="UTF-8" ?>
+%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ page contentType="text/xml" %><?xml version="1.0" encoding="UTF-8" ?>
 <%
 // process request
 // get digilib config
@@ -66,8 +66,8 @@
         String fn = (f != null) ? f.getName() : "null";
 %>  <file>
     <index><%= i+1 %></index>
-    <name><%= digilib.io.FileOps.basename(fn) %></name>
-    <fsname><%= fn %></fsname>
+   <name><c:out value="<%=digilib.io.FileOps.basename(fn)%>"/> </name>
+    <fsname><c:out value="<%=fn%>"/></fsname>
   </file>
 <%
       } // for