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

how to use ftp servlet

kiran kumar

Joined: Feb 07, 2005
Posts: 29
how can we use ftp servlet?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Servlets are for HTTP, not FTP.

Can you explain what it is that you're trying to do?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
One thing you could do is run an FTP batch job from a servlet using the Runtime.exec() method. However, doing will most likely tie your application to a particular platform, as this method makes a call to the host operating system.

You could also use a servlet to set up a web page with the ability to upload files to the server or download them from the server.
[ February 18, 2005: Message edited by: Merrill Higginson ]

Consultant, Sima Solutions
I agree. Here's the link:
subject: how to use ftp servlet
It's not a secret anymore!