permaculture playing cards*
The moose likes Struts and the fly likes Map s: file tag inside s:iterator with object in a list in action class 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 "Map s: file tag inside s:iterator with object in a list in action class" Watch "Map s: file tag inside s:iterator with object in a list in action class" New topic
Author

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

Nrapendra Sharma
Ranch Hand

Joined: Jun 16, 2008
Posts: 31
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


Regards,
Nrapendra Sharma
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Map s: file tag inside s:iterator with object in a list in action class
 
Similar Threads
Struts 2 : file upload
s:select tag issue in struts2
Populating a list of Objects in Struts2
Struts2 nested iterators with listboxes
Struts2 multiple files upload with a twist