I am trying to make a file upload that will accept multiple files using the stripes framework. I have a single file upload working. I am trying to understand the Documentation for multiple file upload.According to the doc, all I need to do is modify single file example to:<stripes:form> <c:forEach ... varStatus="loop"> ... <stripes:file name="newAttachments[${loop.index}]"/> ... </stripes:form>ActionBeanprivate List<FileBean> newAttachments;public List<FileBean> getNewAttachments() { return this.newAttachments;}public void setNewAttachment(List<FileBean> newAttachments) { this.newAttachments = newAttachments;}What do I need to replace the ...(in particular, the one in the forEach loop) with to get this example working? Thanks. 解决方案 Probably that should work:<c:forEach begin="1" end="3" varStatus="loop">see Tag forEach doc 这篇关于多个文件上传(条带化)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
06-06 08:30