I am new to netbeans with glassfish server.My html code looks like,
you can do like that
<%!
Object path;
public void getDirectory(String path, Vector files, Vector folder){
File directory=new File(path);
File []file=directory.listFiles();
for(int i=0; i
<%
path=session.getAttribute("fileName");
Vector file=new Vector(), folder=new Vector();
getDirectory("C:/FileFolderProject/WebContent/"+path,file,folder);
out.println("");
for(int a=0; a
<%
out.println(""+file.elementAt(a).toString()+"
");
%>
<%
}
out.println("");
%>