views:

21

answers:

1

Does everyone know if there's an example of code of an application similar to these one?

http://www.jscape.com/sftpapplet/sftp_applet_demo.html

It's an applet that allows to upload huge files into an FTP Active server via HTTP using a Java Applet.

A: 

Here's a step by step:

  1. Create a class which accepts a File... argument and sends them to a SFTP server. Any Java SSH API should suffice. Here are the open source ones:

    Test it as a simple Java Application with a main() method.

  2. Create a nice Swing UI utilizing the functionality of the class you created at step 1. You can for example use a JFileChooser to select local files for upload.

  3. Create an Applet which launches the Swing UI which you created at step 2.

  4. Embed the applet in a HTML page using <applet> or <object> tags or using the unversal applet deployment tool in flavor of deployJava.js.

Related questions:

BalusC