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 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
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