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.
Here I'm trying to upload a file and write it's content in my JSP. Here's my code :
Here my string file appears to be empty. Can someone please tell me where am I going wrong?
Because while debugging I can see the file being uploaded to the servlet but I'm unable to retrieve contents of the file. Please help.
The iterator above is collection of objects retrieved in request object. Then you are iterating through that collection using the loop, and comparing the type of object i.e whether its a form field (text,checkbox,radio etc) or a file type object i.e input type=file.