0

I'm looking for a very basic example of the use of Apache FileUploader - one that actually has explanation of the components. All I can find on Google just seems to dive right into the code without any understanding imparted.

The libraries are installed and I've had a shot at it, but I just don't understand the code and I hate being a copy-coder.

The use is for a single file upload, from an HTML form. Multiple files are not needed (which most tutorials also focus on).

Any help or links would be useful, thanks.

2 Answers2

1

http://www.tutorialspoint.com/jsp/jsp_file_uploading.htm has necessary comments and explanation for the file upload.

You can also see How to upload files to server using JSP/Servlet?

Community
  • 1
  • 1
Ravindra Gullapalli
  • 9,049
  • 3
  • 48
  • 70
0
  <form name="form1" action="forward.jsp" method="post" >
      File Upload:<input type="file" name="upload" size="100"/>
                  <input type="submit" value="submit" size="100"/>

   </form>

In forward.jsp

out.println(request.getparameter(upload));//returns filename only rather than whole path

kark
  • 4,763
  • 6
  • 30
  • 44