Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File upload from Jsp

 
Prashant Medhekar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
i want to upload a file from a Jsp page.The action of the page will take the file to a servlet.
This servlet will save the file in database.

Can anyone tell me how to achieve this.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

The server side of a file upload can be handled be the Apache Commons FileUpload library.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64606
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a FAQ entry on this very subject.
 
Piyush Patel
Ranch Hand
Posts: 127
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
check out following link for uploading file from JSP

http://www.javazoom.net/jzservlets/servlets.html

i used this library in my project , it works.

Thanks :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic