Mercurial > hg > digilib
changeset 1217:e7e2913b382d
encode output in dirinfo
author | casties |
---|---|
date | Mon, 30 Sep 2013 16:04:00 +0200 |
parents | ee5d2ce6b11a |
children | e543b88b3cfa |
files | webapp/src/main/webapp/dirInfo-xml.jsp |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/webapp/src/main/webapp/dirInfo-xml.jsp Mon Jul 22 21:18:50 2013 +0200 +++ b/webapp/src/main/webapp/dirInfo-xml.jsp Mon Sep 30 16:04:00 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,9 @@ String fn = (f != null) ? f.getName() : "null"; %> <file> <index><%= i+1 %></index> - <name><%= digilib.io.FileOps.basename(fn) %></name> - <fsname><%= fn %></fsname> +<!-- <name><%= digilib.io.FileOps.basename(fn) %></name>--> + <name><c:out value="<%=digilib.io.FileOps.basename(fn)%>"/> </name> + <fsname><c:out value="<%=fn%>"/></fsname> </file> <% } // for