-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
  • 48,723
  • 33
  • 63
  • 158
Kick
  • 4,742
  • 2
  • 20
  • 25

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
  • 44,452
  • 23
  • 114
  • 153