I want to write a servlet that looks in a given directory and gets all the name of the files in a list, array or vector..
I know how to do it in a java application
File pathName = new File("DirName");
String[] fileNames = pathName.list();
But I don't know how to do it in a Servlet.
(I know how the servlets basic, and how to read file using a Servlet)
Thanks for your help
Luis Gallo
I know how to do it in a java application
File pathName = new File("DirName");
String[] fileNames = pathName.list();
But I don't know how to do it in a Servlet.
(I know how the servlets basic, and how to read file using a Servlet)
Thanks for your help
Luis Gallo