Hi,
According to above discussion about multiple file upload in
struts 1.x, I am also facing the same problem, i am trying to upload dynamically multiple files through action class, but i have referred above discussion and tried to incorporate in my code but when i login and click on my jsp page error is coming as "Cannot create iterator for this collection"
here is my code
Jsp:
<logic:iterate id="docName" name="Formclass" indexId="index" >
<td class="detailsPageValue">
<html:file property='<%="selectfile["+index+"]" %>' />
</td>
</logic:iterate>
Formclass.java
private FormFile[] selectfile = new FormFile[100];
public FormFile[] getSelectfile() {
return selectfile;
}
public void setSelectfile(FormFile[] selectfile) {
this.selectfile = selectfile;
}
and I am not getting how to read and write multiple files in action class when we submit the form..
Please Suggest me with this, thanks in advance.