This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm working on this project where we display folders under certain base-folder.
I want to implement the move a file functionality where user selects a file in a folder and clicks the move button shold display a "folder browser dialog".
Once selected a folder, move to the file to that folder. (Note this is all Folders from Server not from the client desktop)
Any ideas are welcome. (Searched for Jquery and what not...)
Also, i'd like to know if we can open a Folder Browser dialog using java script and System.Windows.Form.
Yes, I do agree with you, that displaying the server file system is a bad idea from a security perspective.
But my requirement asks for it, and i can't help them understand the implications.
I've a page that displays the server folders (lets say only from /var/temp/ as root folder ), and a little bit functionality that i've added like create a folder, upload a file to the current folder using apache commons library, delete a file and delete a folder.
But not sure how to implement move functionality.
This is not a Windows application, and my dev env is Java, JSP, servlets, tomcat.
I've a jquery plugin (jquery file tree plugin) that can display server folders but not sure what container i should use to display it.
Most of the jQuery tree plugins I've seen support some sort of drag and drop. Or you can use jQuery UI to add it yourself. Use the drop event to send an Ajax request to the server with the info necessary to move the file.
You might want to also explore the results of search for jQuery file browser to see if anyone has already solved the problems for you.