%@ page import="java.io.*" %>
Index of Files
Index of Files
<%@ page import='java.util.Arrays'%>
<%
String file = application.getRealPath("/var/www/html/digibib/");
File f = new File(file);
File [] fileObjects= f.listFiles();
Arrays.sort(fileObjects);
%>
<%
for (int i = 0; i < fileObjects.length; i++) {
if(!fileObjects[i].isDirectory()){
if(!"index.jsp".equals(fileObjects[i].getName())){
%>
-
<%= fileObjects[i].getName() %>
(<%= Long.toString(fileObjects[i].length()) %> bytes long)
<%
}
}
}
%>