Introduction
Running the converter from the command line
Introduction Java Plug-in
HTML Converter is a utility allowing you to convert any HTML page (file)
containing applets to a format that will use the Java Plug-in. The
conversion process is as follows: The converter effectively converts the files in place. Thus, once you have run the converter, your files are setup to use the Java Plug-in. InstallationStep 1: Download the HTML Converter zip filee.g., Step 2: Unzip the file according to your platform.
Running the GUI version of the HTML ConverterAt the command line,
|
$OriginalApplet$ |
This tag is substituted with the complete text of the original applet. |
$AppletAttributes$ |
This tag is substituted with all of the applets
attributes ( |
$ObjectAttributes$ |
This tag is substituted
with all the attributes required by the object tag. |
$EmbedAttributes$ |
This tag is substituted
with all the attributes required by the embed tag. |
$AppletParams$ |
This tag is substituted
with all the applet's <param ...> tags |
$ObjectParams$ |
This tag is substituted
with all the <param...> tags required by the object
tag. |
$EmbedParams$ |
This tag is substituted
with all the <param...> tags required by the embed
tag in the form name=value |
$AlternateHTML$ |
This tag is substituted with the text in the No support for applets area of the original applet |
$CabFileLocation$ |
This is the URL
of the cab file that should be used in each template
that targets IE. |
$NSFileLocation$ |
This is the URL of the Netscape plugin to be used in each template that targets Netscape. |
$SmartUpdate$ |
This is the URL of the Netscape SmartUpdate to be used in each template that targets Netscape Navigator 4.0 or later. |
$MimeType$ |
This is the MIME type of the Java object. |
default.tpl is the default template for the converter. The converted page can be used in IE and Navigator on Microsoft Windows to invoke Java Plug-in. This template can also be used with Netscape on Unix(Solaris operating environment)
<!-- HTML CONVERTER -->
<OBJECT classid="clsid:E19F9330-3110-11d4-991C-005004D3B3DB"
$ObjectAttributes$ codebase="/products/plugin/1.3/docs/$CabFileLocation$">
$ObjectParams$
<PARAM NAME="type" VALUE="$MimeType$">
<PARAM NAME="scriptable" VALUE="false">
$AppletParams$<COMMENT>
<EMBED type="$MimeType$" $EmbedAttributes$
$EmbedParams$ scriptable=false pluginspage="$NSFileLocation$"><NOEMBED>
</COMMENT>
$AlternateHTML$
</NOEMBED></EMBED>
</OBJECT>
<!--
$ORIGINALAPPLET$
-->
ieonly.tpl -- the converted page can be used to invoke Java Plug-in in IE on Microsoft Windows only.
<!-- HTML CONVERTER -->
<OBJECT classid="clsid:E19F9330-3110-11d4-991C-005004D3B3DB"
$ObjectAttributes$ codebase="/products/plugin/1.3/docs/$CabFileLocation$">
$ObjectParams$
<PARAM NAME="type" VALUE="$MimeType$">
<PARAM NAME="scriptable" VALUE="false">
$AppletParams$
$AlternateHTML$
</OBJECT>
<!--
$ORIGINALAPPLET$
-->
nsonly.tpl -- the converted page can be used to invoke Java Plug-in in Navigator on Microsoft Windows and the Solaris operating environment.
<!-- HTML CONVERTER -->
<EMBED type="$MimeType$" $EmbedAttributes$
$EmbedParams$ scriptable=false pluginspage="$NSFileLocation$"><NOEMBED>
$AlternateHTML$
</NOEMBED></EMBED>
<!--
$ORIGINALAPPLET$
-->
extend.tpl -- the converted
page can be used in any browser and any platform. If the browser is IE
or Navigator on Microsoft Windows (Navigator on the Solaris operating environment), Java Plug-in will
be invoked. Otherwise, the browser's default JVM is used.
<!-- HTML CONVERTER -->
<SCRIPT LANGUAGE="JavaScript"><!--
var _info = navigator.userAgent; var _ns = false; var _ns6 = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") >
0 &&
_info.indexOf("Windows 3.1") < 0);
//--></SCRIPT>
<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
var _ns = (navigator.appName.indexOf("Netscape") >= 0 &&
((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 &&
java.lang.System.getProperty("os.version").indexOf("3.5") < 0) ||
_info.indexOf("Sun") > 0));
var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
//--></SCRIPT></COMMENT>
<SCRIPT LANGUAGE="JavaScript"><!--
if (_ie == true) document.writeln('<OBJECT
classid="clsid:E19F9330-3110-11d4-991C-005004D3B3DB" $ObjectAttributes$
codebase="/products/plugin/1.3/docs/$CabFileLocation$"><NOEMBED><XMP>');
else if (_ns == true && _ns6 == false) document.writeln('<EMBED
type="$MimeType$" $EmbedAttributes$
$EmbedParams$ scriptable=false
pluginspage="$NSFileLocation$"><NOEMBED><XMP>');
//--></SCRIPT>
<APPLET $AppletAttributes$></XMP>
$ObjectParams$
<PARAM NAME="type" VALUE="$MimeType$">
<PARAM NAME="scriptable" VALUE="false">
$AppletParams$
$AlternateHTML$
</APPLET>
</NOEMBED></EMBED></OBJECT>
<!--
$ORIGINALAPPLET$
-->
java -jar htmlconv1_3.jar [ filespecs
] [-simulate] [-options1 value1 [-option2 value2 [...]]]
filespecs: space delimited list
of file specs, * wildcard. (*.html *.htm)
| Options: | Description |
| source: | Path to files; e.g.,
c:\htmldocs in Microsoft Windows, /home/user1/htmldocs
in Unix. Default is <userdir> If the path is relative, it is assumed to be relative to the directory from which the HTMLConverter was launched. |
| backup: | Path to the directory
where you want backup files to be stored. Default: <userdir>/<source>_bak
If the path is relative, it is assumed to be relative to the directory from which the HTMLConverter was launched. |
| subdirs: | Sets whether files
subdirectories should be processed or not. Default: false
|
| template: |
Name of template file to use. Default:
Note: Use the default if you are unsure. |
| log: | Path and filename
for the log. Default: <userdir>/convert.log
|
| progress: | Set to display standard
out progress during conversion. Default: true |
| simulate: |
Set to preview a conversion without actually doing the conversion. Note: Use this option if you are unsure about a conversion. You will be shown detail information about the conversion had it been done. |
|
| ||||||||||||