This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi there, I have to upload files from a browser (local system) to a location on the web server. Am using JSP to do this. Am totally clueless on how to go about doing. Some tips would help a lot. Thanks Jack
Hi Jack There are several options that u can follow Code the Uploading part urself or take a ready made components Some of the readymade ones that i know are jspsmartupload. If u want to code it urself then here are some steps to follow U should use the <FILE> tag for choosing the file on ur page. Also the form tag should have ENCTYPE as multipart/form-data Heres a sample '<form id="frmUpload" name="frmUpload" METHOD="post" ENCTYPE="multipart/form-data">' Now when u click on the upload button in ur page,the file that is to be uploaded goes as Header data to the submitted page. In the submitted page code has to be written to read the header data and pluck out the File data from there and recreate the uploaded file in the server. There is a very nice explanation on how the Uploading process actually works given in 15seconds.com. Read that for a much clearer understanding. Hope this helps Regards Hemanth