Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple file upload using display tag - struts 1.2

 
Chauhan Hemant Kumar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic