Secure Global Desktop 4.31 Administration Guide > Applets > The TTAAPPLET tag
In HTML, you use the APPLET
tag to include applets in
HTML pages. However, in Secure Global Desktop themes, a special tag
called TTAAPPLET
is used instead.
When a page containing the TTAAPPLET
tag is requested,
the ttawebtop.cgi
cgi-bin program replaces the TTAAPPLET
with an
APPLET
tag. This automatically generated
APPLET
tag contains all the essential information needed
to display the application. This information includes:
Note The Secure Global Desktop applets are only used with the classic webtop.
Any attributes you specify for the TTAAPPLET
tag
appear for the automatically generated APPLET
tag.
Also, the archive
attribute lets you specify a Java archive. Usually you
should use the value asad
here.
You can include a terminal emulator applet in an HTML page in the following way (note that you must supply other terminal emulator applet parameters such as the name of the application and the ASAD port number):
<ttaapplet code="com/tarantella/tta/client/applets/TDE.class" name="Tarantella Terminal Emulator">
ttawebtop.cgi
replaces the TTAAPPLET
tag
with an APPLET
tag with the name Tarantella
Terminal Emulator
, using the code found in
/opt/tarantella/var/docroot/java/com/tarantella/tta/client/applets/TDE.class
.
You can use the placeholders %%CALCWIDTH%%
and
%%CALCHEIGHT%%
to let Secure Global Desktop decide the
correct size for the webtop tray applet.
You can use these placeholders in a TTAAPPLET
element
like this:
<ttaapplet code="SmartIconHost" width="%%CALCWIDTH%%" height="%%CALCHEIGHT%%">
Secure Global Desktop replaces %%CALCWIDTH%%
and
%%CALCHEIGHT%%
with the optimum width and height for the
webtop tray applet, taking into account that applet's settings for the
width and height of links, margins and link layout.
Note To allow Secure Global Desktop to calculate
%%CALCWIDTH%%
and %%CALCHEIGHT%%
correctly,
you must use a special format to specify values for certain applet
parameters. If you need to use a special format for a particular
applet parameter, its parameter
description will tell you so.
Copyright © 1997-2007 Sun Microsystems, Inc. All rights reserved.