What I would like to do is add dynamically HTML input fields in one page, and each one of them correspond to an element of a struts array property. Let's say I have a number of identical fields in an HTML page:
< input type="file" name="myfile" />
and when the form is submitted, I want each field to correspond to an element in a FormFile array in the struts form bean:
FormFile [] myfile;
Obviously the above doesn't work, but I am looking for how to do something equivalent.
EDIT: The above doesn't work for uploading files and the FormFile type only.
Otherwise, an array element is mapped to an input element or html:text element instance, intuitively. So, to make my question more specific, why can't I upload with struts an array of files?