If I upload any file in the JSP then how i know the full path of the location where the file is save on servlet.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For uploading files using JSP/Servlet, it is suggested to use Apache’s Commons FileUpload library: http://commons.apache.org/fileupload/
Then you can explicitly say where you want to save the uploaded file. For example, you might want to save it into the
c:\my_filesdirectory. To get started, you can read this tutorial. For more information, please read FileUpload’s Guide.