writer.print("</title></head>");
writer.print("<body><h2>");
writer.print(resource.getResourcePath());
writer.print("</h2><ul>");
writer.print("<li><a href=\"..\">..</a></li>");
DavResourceIterator iter = resource.getMembers();
while (iter.hasNext()) {
DavResource child = iter.nextResource();
String label = Text.getName(child.getResourcePath());
writer.print("<li><a href=\"");
writer.print(child.getHref());
writer.print("\">");
writer.print(label);