Simple File Manager Servlet
by Kristian Kraljic, December 29, 2015
The Force Awakens in my blog, … but also in real-life. We are going to watch the new Star Wars movie today, therefore this is going to be quick marathon post today.
Have you ever tried to manage files on a remote server? Kind of tedious, right? Well I’ve written a very small and light-weight Java Servlet handling various common file management tasks, like:
- Browsing all root partitions
- Display of files and folders
- File up- and download (ZIP file support)
- Recursive file name search
- Deleting files and setting file flags (+rwx)
In one of the next posts I’m going to speak a few more works about it, but at the moment I really like to contribute to the Open Source community on my GitHub profile. You’ll find the FileManagerServlet
as a Maven dependency over there:
https://github.com/kristian/file-manager-servlet/
Now it’s on, may the Force be with you!
Hi there,
Thanks for the Filemanagerservlet.
I am able to import and build the project , but I am not able to access the servlet using url in tomcat/eclipse.
Could you please to provide some guidance in this regard.
Thanks and Regards,
Shriranga.
Hello Shriranga,
If you build the WAR file in Eclipse, make sure to include the Maven dependencies to your Deployment Assebly. Right click your project, goto Proerties > Deployment Assembly, click on Add > Java Build Path Entries and add the Maven Dependencies.
Hope this helps and solves the problem. Otherwise could you please check your sever logs after the deployment?
Thanks & regards,
Kristian
Hi Kristian,
Thanks for your reply, will try again.
Thanks and Regards,
Shriranga Kulkarni.