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

I need an upload servlet

Azz Romaysa
Ranch Hand

Joined: Dec 08, 2004
Posts: 66
Hi,

Does someone have a servlet which I can use to upload files, images... I've always used one, but it's in jsp. I would like one as a Servlet.

Could someone help me?

Thanks,
Abu Romaysa
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

If you have it working in a JSP it should be a fairly straight-forward matter to factor the code out of the JSP and into a servlet. What aspect has you stumped?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Elihu Smails
Ranch Hand

Joined: Jan 12, 2005
Posts: 37
check out the jakarta commons project.

http://jakarta.apache.org/commons/fileupload/
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: I need an upload servlet