Hi All, I have written a small EJB and JSP which uploads some user info from a form to the DB. I would also like to upload a file from the user to the server. Any ideas / resources on how this can be done ? Thanks. Anoop
Instead of writing all the code to deal with multipart form data you probably better off using prebuilt components available from different vendors. Some application servers supply their own classes/components designed specifically for that purpose (i.e. Orion supplies FilePostParser and PostFileInputStream to work with multipart data). You could also use either classes available from o'reilly or a tag-lib from jspSmart.com (jspSmartUpload).