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.
Just wondering if you could help with my next issue?
i am writing a function that allows the user to upload images/metadata from their localk machine onto my web syste,
this is done in 3 steps: 1. browse to and select images from local hard-disk, click upload > continue 2. goto next page and enter metadata > continue 3. goto next display summary of images and metadata > confirm
now I can do all this except I can't get the upload image thing working.
1. Why does the JSP return NULL for the hidden value 'step' when I put the [enctype="multipart/form-data"] in the <form>>
Multipart forms work differently from regular form submissions. Because of this, request.getProperty doesn't work with them. The libraries mentioned in the link I gave you all have their own way of retrieving form parameters when uploading.
Kevin P Smith
Joined: Feb 18, 2005
I'm using the Jakarta Fileupload JAR but have hit a snag!
The files I am uploading are images, which I need to then 'retrieve' on the next JSP page to display.
So far i have this code in the Servlet
Then I need to display the image in a JSP file so was gonna do the usual:
But I'm getting nothing back. [ March 13, 2008: Message edited by: Keith Seller ]