how could we connect FTP site through an applet ? how to handle the security issues like : java.security.AccessControlException: access denied sample code for download / upload please ?
Applets run in a restricted environment (called the "sandbox") in order to protect the client. The applet is not allowed to write files to the client machine or connect to any IP address other than the one the applet was downloaded from. An applet may be digitally signed to allow greater permissions (the signature insures that the author is known and the code has not been tampered with). Look at the Signed Applets chapter of Advanced Programming for the Java 2 Platform.