Traversing server side directories and files in client applications

Hi!

I was wondering if there is any built in features in Java to support traversing of  directories and files? For example a structure that takes the path to the  root directory as an argument and gets control over subfiles and subdirectories.

I am currently working on a client application, which will open and store files on a remote server using servlets. Consequently I have to pass the file structure from the server to the client when the user wants to open and save a file in order for him/her to navigate the server side directories on the client side. The client program currently uses JFileChooser for this purpose, but it can't see the files on the server so I will have to pass them over somehow.

I am also considering the java implementation of WebDAV, namely Jakarta Slide to handle the file management, but I am not sure about the complexity of integrating it with the rest?

Any thoughts regarding these issues?

Thanks for any help on this!
MarteJAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
Unless the server is on your network, you're looking at FTP or WebDAV.
CEHJCommented:
You might like to look into  WebdavSystemView.java for JFileChooser
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

MarteJAuthor Commented:
The server is on the same network. Is WebDAV the best solution, or is there any other way to retrieve a directory structure from the server to the client application, which is launched through a web application with Java Web Start?
CEHJCommented:
If it's on the same network, with the appropriate shares set up, you should be able to browse with JFileChooser

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CEHJCommented:
:-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.