This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a huge form in which multiple documents of different types are being uploaded. Doing the same in Struts 2 using the multiple file upload logic of struts.
These are the parameters of my class(action). The name of the form fields have to be "upload" as per the class.
(some fields may be optional to upload) The files get uploaded correctly using copyFile. However within the upload array, how do I know which file belongs to which parameter as they bear the same name "upload", as I need to save the filename to database.