Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use ftp servlet

 
kiran kumar
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
how can we use ftp servlet?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets are for HTTP, not FTP.

Can you explain what it is that you're trying to do?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic