Link to home
Start Free TrialLog in
Avatar of manojpotla
manojpotla

asked on

Code for uploading a file from JSP to servlet

Hi All

I needed some code to uplaod a file from a JSP to the servlet. Could anyone please give me the code to do that. From the JSP side i am comfortable but from the servlet side when i upload the file how do i handle it is what i want to know. Thanks in advance  for your help.

Regards,
Manoj
Avatar of malfunction84
malfunction84
Flag of United States of America image

Heh, funny you should ask this question.  I'm working on this right now.  You'll want to look into using the Apache Commons FileUpload library.  Their "how-to" is full of code snippets.

http://commons.apache.org/fileupload/using.html
ASKER CERTIFIED SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial