小编use*_*218的帖子

Data structure to store a directory structure ?

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)

java directory web-applications data-structures

5
推荐指数
1
解决办法
9282
查看次数