Results 1 to 2 of 2

Thread: Java Applet FTP Client

  1. #1

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236

    Question Java Applet FTP Client

    I'm trying to make an FTP client that runs entirely on the web (Applet based). What java classes do I need to implement for the functionality of the program? The GUI I'll have no problem doing, just knowing what classes to use is tricky and can this be done (with Java I'm assuming anything can be done).

    Thanks

  2. #2
    Addicted Member
    Join Date
    Nov 2001
    Location
    Yewston, Texis
    Posts
    240
    Well, yes, you can do most anything you want to do with a Java program, but there are many things you can't do with an applet due to security constraints. What you are trying to do is possible using the Socket class but there are restrictions e.g. you may only connect to an FTP server that is the same server as where the applet resides. Also, because you must use the Socket class and not the more convenient URL class, this project will be non-trivial. In order to succeed you will have to implement the parts of the FTP protocol you need from within your applet. This will involve making the connection and issuing a 'PASV' command to tell the server to choose a port # for the file transmission, etc.

    cudabean

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width