Specifying applet parameters

Top  Previous  Next

All applet parameters may be defined in sections of the HTML code and are used to control both the behavior and look and feel of Secure FTP Applet. The default applet HTML code for Secure FTP Applet is provided below. These are the minimum applet parameters that must be used in order to successfully load the applet and SHOULD NOT be removed or modified.

 

Default HTML Code

 

<object width="800" height="600" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,2,0">

   <param name="code" value="com.jscape.ftpapplet.FtpApplet.class">

   <param name="archive" value="sftpapplet.jar">

   <param name="scriptable" value="false">

   <comment>

       <embed

           type="application/x-java-applet;version=1.4" \

           code="com.jscape.ftpapplet.FtpApplet.class" \

           archive="sftpapplet.jar" \

           name="ftpapplet" \

           width="800" \

           height="600" \

                   scriptable="false" \

                   pluginspage = "http://java.sun.com/products/plugin/index.html#download">

                   <noembed>           

           </noembed>

       </embed>

   </comment>

</object>

 

Adding applet parameters

 

You may add applet parameters to the default HTML code to control the behavior and look and feel of the applet. You will find these parameters discussed in other topics included with this documentation.

 

In order for parameters to be recognized by both Microsoft IE and Firefox browsers they must be defined in two places within the HTML code. The first place is by adding a <param> tag and the second is to define a name/value pair in the <embed> tag. Notice that a terminating \ must be added when adding parameters to the <embed> tag where parameters span multiple lines. An updated version of the default applet HTML code which contains hostname and username parameters has been provided to illustrate this. Additional parameters may be added in a similar manner.

 

Example

 

<object width="800" height="600" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,2,0">

   <param name="code" value="com.jscape.ftpapplet.FtpApplet.class">

   <param name="archive" value="sftpapplet.jar">

   <param name="scriptable" value="false">

   <param name="hostname" value="ftp.myserver.com">

   <param name="username" value="jsmith">

   <comment>

       <embed

           type="application/x-java-applet;version=1.4" \

           code="com.jscape.ftpapplet.FtpApplet.class" \

           archive="sftpapplet.jar" \

           name="ftpapplet" \

           width="800" \

           height="600" \

                   scriptable="false" \

       hostname="ftp.myserver.com" \

       username="jsmith" \

                   pluginspage = "http://java.sun.com/products/plugin/index.html#download">

                   <noembed>           

           </noembed>

       </embed>

   </comment>

</object>