<%@ page contentType="text/html; charset=euc-kr"%>
<%
String dir = "/home/test/images";
java.io.File f = new java.io.File(dir);
if(f.exists()){
String [] filelist = f.list();
for(int i=0;i<filelist.length;i++){
java.io.File f2 = new java.io.File(dir + "/" + filelist[i]);
out.println("<a href='/images/"+f2.getName()+"'>"+f2.getName()+"</a><BR>");
}
}
%>
f2.isDirectory()
out.println("<div class=\"folder\">"+f2.getName()+"<div>");
f2.isFile()
out.println("<div class=\"file\">"+f2.getName()+"<div>");
<%
String dir = "/home/test/images";
java.io.File f = new java.io.File(dir);
if(f.exists()){
String [] filelist = f.list();
for(int i=0;i<filelist.length;i++){
java.io.File f2 = new java.io.File(dir + "/" + filelist[i]);
out.println("<a href='/images/"+f2.getName()+"'>"+f2.getName()+"</a><BR>");
}
}
%>
f2.isDirectory()
out.println("<div class=\"folder\">"+f2.getName()+"<div>");
f2.isFile()
out.println("<div class=\"file\">"+f2.getName()+"<div>");