out.println("</tr>");
out.println("</thead>");
out.println("<tbody>");
/* Process the parent */
VFSResource parent = resource.getParent();
if (parent != null && (parent.isBrowsable() || !SystemProperties.get("adito.disableFolderBrowsing", "true").equals("true"))) {
out.println("<tr>");
out.print("<td><li><a href=\"..\">../</a></td>");
out.println("<td>Dir</td><td>");
try {
out.println(parent.getFile().getContent().getSize());
}
catch(Exception e) {
}
out.println("</td><td>");
try {
out.println(SimpleDateFormat.getDateTimeInstance().format(new Date(parent.getFile().getContent().getLastModifiedTime())));
}
catch(Exception e) {
}
out.println("</td></tr>");
}
/* Process the children */
Iterator iterator = resource.getChildren();
if (iterator != null) {
while (iterator.hasNext()) {
VFSResource child = (VFSResource) iterator.next();
String childPath = child.getDisplayName();
out.println("<tr>");
out.print("<td><li><a href=\"" + child.getWebFolderPath() + "\">" + childPath + "</a></td>");
if(child.isCollection())
out.println("<td>Dir</td><td>");
else if(child.isResource())
out.println("<td>Resource</td><td>");
else
out.println("<td>Unknown</td><td>");
try {
out.println(child.getFile().getContent().getSize());
}
catch(Exception e) {
}
out.println("</td><td>");
try {
out.println(SimpleDateFormat.getDateTimeInstance().format(new Date(child.getFile().getContent().getLastModifiedTime())));
}
catch(Exception e) {
}
out.println("</td></tr>");
out.println("</tr>");