Am actually developing appln. using jsp, java. How can I use the class MultipartParser to upload an image and at the same time take some text fields values as parameters and then retrieve each of them (i.e the image, 1st txtField value, 2nd txtField value, etc.. ) and store them in the db.
Here's theAPI Choose one of the constructors In JSP: MultipartRequest mpr = new MultipartRequest( request, pathToSaveDirectory ... ); The uploaded file will be stored to saveDirectory automatically. Values of other Formelements you retrieve with String myTextfield = mpr.getParameter("myTextfield"); cb
subject: Use of "MultipartParser" in com.oreilly.mulitpart