This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line! See this thread for details.
Our product uses IBM Websphere Portal 5.1 for implementation and one of our currently added features require a functionality allowing user to upload a file onto our database.
We've implemented the same using traditional technique by using enctype as multipart/form-data in our source JSP from where the user can select a file for upload.
Our problem here is that upon submitting this JSP, if the enctype is set to multipart/form-data, the JSP request does not process. It reaches the HTMLAction however but all of its attributes are null.
If we are to remove the multipart/form-data alone, the JSP works just fine but we do not have our file.
Is there a work-around to this?
We've already considered the option of using a servlet for the file upload function but this is not feasible since we cannot have a pop-up window and our resultant JSP (in portlet) should display list of files with the recently uploaded file properly listed.