File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes File upload  from Jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "File upload  from Jsp" Watch "File upload  from Jsp" New topic
Author

File upload from Jsp

Prashant Medhekar
Greenhorn

Joined: Nov 17, 2009
Posts: 4
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
Marshal

Joined: Mar 22, 2005
Posts: 41525
    
  53
Welcome to JavaRanch.

The server side of a file upload can be handled be the Apache Commons FileUpload library.


Ping & DNS - my free Android networking tools app
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

There's a FAQ entry on this very subject.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Piyush Patel
Ranch Hand

Joined: Feb 24, 2009
Posts: 127

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 :-)
 
wood burning stoves
 
subject: File upload from Jsp