permaculture playing cards*
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to use ftp servlet" Watch "how to use ftp servlet" New topic
Author

how to use ftp servlet

kiran kumar
Greenhorn

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

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 ]

Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to use ftp servlet