<%@page contentType="text/xml" import="java.io.File" %> <% if (System.getProperty ("jboss.netboot.served.config") == null) System.setProperty ("jboss.netboot.served.config", "default"); String location = getServletConfig().getInitParameter("directory"); location = org.jboss.util.Strings.replaceProperties (location); String subDir = request.getParameter("dir"); if (subDir != null) location = location + "/" + subDir; File base = new File(location); File[] subfolders = base.listFiles(); for (int i=0; i <%=name%> <%=lastModified%> <% } else { %> <%=name%> <%=lastModified%> <%=size%> <% } } %>