Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Map s: file tag inside s:iterator with object in a list in action class

 
Nrapendra Sharma
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have map a s:file tag with a object in a list, generally s:file is mapped to Action class but in our case we have to attach multiple file to object which is in a List in Action class.
Action class is like this:



Following is the jsp code:


If we place s:file tag out side iterator and put the file, filename, contentType attributes at action class then its working fine but
when we place s:file tag inside iterator and put file, filename, contentType attributes at class data level then we are not getting any data when form is submitted.

Could someone please help how can we do this, its our requirement to put the file attributes at class data level. as there can be any number of objects of data in Action class and user can upload any number of files on data level.

Thanks in advance
Nrapendra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic