I want a JSP web page that allows the user to select a folder as input, not files. If I use , I couldn't select a folder as input, I can only select a single file as input. In my case, are there any solutions to my problem?
A:
From the struts docs;
FormFile
represents a file that has been uploaded by a client.
What you are asking doesn't make sense. You can't upload a directory, only a file.
Qwerky
2010-10-19 13:58:15
I do not want to upload a complete file, just select the name of a folder from a component as the fact FormFile
Mercer
2010-10-19 14:02:07
there exists a component of type FormFolder?
Mercer
2010-10-19 14:02:42
I don't believe you can do this. Most browsers won't let you select a directory with the form input of type file. Tested on IE8, Firefox, Chrome, and Opera.
Qwerky
2010-10-19 14:16:39