This week's book giveaway is in the Java in General forum. We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line! See this thread for details.
if you are using struts, you can make use of the struts upload action. If it is plain vanilla JSP. make use of the <file> tag in html, and read the file manually in your java controller class.
This is most often accomplished by presenting multiple file upload controls to the user. You can even use JavaScript to create as many as you want on demand.
Yes I am using Apaches common upload API only, But in my application there is a requirement user needs to upload some 100 files
At one shot.There i am not able to incorporate the Apache commons upload technique to select a Folder containing 100 files.
How to Do it ?
Any Solution will be highly appreciated.
In this case, you can use an applet for selecting a folder on the client side, but you would have to code the tranfer of the individual files to the server yourself (commons-fileupload handles only the server-side of file-transfer as far as I know).
If you want to use an applet I'd suggest to look into the Apache Commons HttpClient library. The http://faq.javaranch.com/java/FileUpload page links to some material about both libraries.
That's why it was suggested that you write an applet that lets the user select a folder. Then you can use the Commons HttpClient library for the applet (client) side of the upload.
Actually I am new To Appelts,So If Some Body have a sample Code of an Applet which Uploads Folder
and is Integrated with the Apache Commons will be really Help full.