File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes multiple file upload using display tag - struts 1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "multiple file upload using display tag - struts 1.2" Watch "multiple file upload using display tag - struts 1.2" New topic
Author

multiple file upload using display tag - struts 1.2

Chauhan Hemant Kumar
Greenhorn

Joined: Sep 25, 2012
Posts: 1
Hi,
I am using display tag to dynamically get populate no of file uploads in a page from the bean.
but not able to retrieve multiple files.

JSP page:
<display:column titleKey="supportdoc.title" class="genTextValues" media="all" >
<html:file name="wireForm" styleClass="genTextValues" property="supportingDoc" onkeydown="javascript:return(false);" size="5"/>
</display:column>


Form File:
private FormFile supportingDoc;
public FormFile getSupportingDoc() {
return supportingDoc;
}
public void setSupportingDoc(FormFile supportingDoc) {
this.supportingDoc=supportingDoc;
}

i tried with this also :
private FormFile[] supportingDoc;
public FormFile[] getSupportingDoc() {
return supportingDoc;
}
public void setSupportingDoc(FormFile[] supportingDoc) {
this.supportingDoc=supportingDoc;
}

in both the cases it is not working.
 
 
subject: multiple file upload using display tag - struts 1.2
 
Similar Threads
Uploading Multiple Files Using html:file
Upload multiple files with separate submit buttons
Multiple File Upload using Struts
Why am I getting IllegalArgumentException
Display Tag Library auto-paging problem