Question: Implement the folder functions through java servlets/classes: - Display the content of a folder (including folder navigation) - Create a folder - Delete a folder
Implement the folder functions through java servlets/classes:
- Display the content of a folder (including folder navigation)
- Create a folder
- Delete a folder
Specifically, when requested without any parameter, the main page of the application should display all the top-level folders. For example:

A user may click on a folder to enter that folder, in which case the application displays the subfolders inside the selected folder. For example:

Clicking on .. should take the user to the parent folder, and clicking on Delete Folder should delete the current folder and all its subfolders, and take the user back to the parent folder.
Clicking on New Folder should let the user enter the name for a new folder, e.g.

And the new folder should be created inside the current folder.
you may NOT create any folder on disk. Instead, use a data model class like the following:
public class Folder {
Integer id;
String name;
Folder parent;
}
Then creating a new folder is simply creating a new object of this class, and all the other folder operations become operations on the objects of this class as well. For example, displaying the content of a folder is simply displaying the objects whose parent is the current folder object.
[New Folder] My Files Documents Temp
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
