Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes How can I upload a file(*.doc,*.zip...) within a servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "How can I upload a file(*.doc,*.zip...) within a servlet?" Watch "How can I upload a file(*.doc,*.zip...) within a servlet?" New topic
Author

How can I upload a file(*.doc,*.zip...) within a servlet?

dx wu
Ranch Hand

Joined: Apr 28, 2002
Posts: 60
I want to upload a file within a servlet,How to do? thanks!


good good study , day day up!
Mat Robinson
Greenhorn

Joined: Aug 02, 2002
Posts: 20
What you need to do is use the HTML input tag with type file. This will allow you to upload things from the page as a multipart request.
Check out http://www.onjava.com/pub/a/onjava/2001/04/05/upload.html for a full description.
Mat.
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
use jspsmartupload or the oreilly classes..


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I upload a file(*.doc,*.zip...) within a servlet?