-2

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.

Roman C
  • 49,761
  • 33
  • 66
  • 176
Kick
  • 4,823
  • 3
  • 22
  • 29

1 Answers1

2

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_files directory. To get started, you can read this tutorial. For more information, please read FileUpload's Guide.

Behrang
  • 46,888
  • 25
  • 118
  • 160