File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes FTP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "FTP" Watch "FTP" New topic


ram shyam ravi

Joined: Sep 20, 2002
Posts: 14
Can anyone pls send me code developed in servlets to do FTP upload and download.
chanoch wiggers
Ranch Hand

Joined: May 24, 2001
Posts: 245
why do you want to upload using ftp? why use a servlet solution to do ftp? Let me say that I havent as yet seen a point to doing ftp with a servlet, just as it is very rare to see servlets being used for smtp - i think you will find that most people will point you in the direction of an alternative solution - for one thing, you would need a container that provides the support for ftp that the servlet would need. Since FTP is a very clearly defined process (it is not like a content management system but rather (if rather crudely) a system for transferring files to remote destinations. As a result, unless you are wanting to provide some kind of CMS system for web management that uses FTP, building the container would obviate the need for the servlet itself.

chanoch<p><a href="" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
Randy Motluck

Joined: Jul 19, 2002
Posts: 10
For FTP you might want to try Freshmeat:
This is something a coworker used. It is a client API.
I agree. Here's the link:
subject: FTP
It's not a secret anymore!