I am developing a simple java web application using struts 2 framework. the purpose of the application is to display a specific directory structure under my computer using a JSP page.
My question is which data structure to use in order to store a directory structure, so that the JSP page can access that directory structure object from the action class.
ps:I want to use the following java code to traverse the directory.
Plz help
import java.io.File;
public class DisplayDirectoryAndFile{ …Run Code Online (Sandbox Code Playgroud)