File upload 多文件上传(条纹)

File upload 多文件上传(条纹),file-upload,stripes,File Upload,Stripes,我正在尝试使用stripes框架进行文件上传,以接受多个文件。我有一个单一的文件上传工作。我正在尝试了解多文件上传的方法 根据文档,我需要做的就是将单个文件示例修改为: <stripes:form> <c:forEach ... varStatus="loop"> ... <stripes:file name="newAttachments[${loop.index}]"/> ... </s

我正在尝试使用stripes框架进行文件上传,以接受多个文件。我有一个单一的文件上传工作。我正在尝试了解多文件上传的方法

根据文档,我需要做的就是将单个文件示例修改为:

<stripes:form>
    <c:forEach ... varStatus="loop">
        ...
        <stripes:file name="newAttachments[${loop.index}]"/>
        ...
    </stripes:form>

...
...
ActionBean

private List<FileBean> newAttachments;

public List<FileBean> getNewAttachments() {
    return this.newAttachments;
}

public void setNewAttachment(List<FileBean> newAttachments) {
    this.newAttachments = newAttachments;
}
私有列表新附件;
公共列表getNewAttachments(){
返回此文件。新附件;
}
public void setNewAttachment(列出新附件){
this.newAttachments=newAttachments;
}
我需要用什么来替换
(特别是forEach循环中的那一个)才能使这个示例正常工作?谢谢。

也许这样行: