fileName PARAM tag



Specifies the name of a file whose contents will populate the document.

Syntax

<PARAM NAME = "fileName" VALUE = "fName">

Values

fName
The name of an existing file to load and display at run time. The file must reside in the same directory as the HTML file that calls it.

Usage

Instead of displaying a blank document when you instantiate the WP applet, you can import the contents of an existing file to the document. If the file resides in the same directory as the HTML file that creates the document, you can do this by including the fileName PARAM tag in the code that instantiates the applet.

For example, if MyWP.html and MyDoc.xxx reside in the same directory, and you want to display the contents of MyDoc.xxx when the user opens MyWP.html, MyWP.html should look like this:

<HTML>
<HEAD>
<TITLE>WP fileName example</TITLE>
<BODY>
<APPLET NAME="MyWP" CODE="lotus.wp.WordProcessor"
   CODEBASE="..\.."
   ARCHIVE="jars/devpack_wp_app.jar"
   WIDTH=500 HEIGHT=450>
   <PARAM NAME="cabinets"  VALUE="cabs/devpack_wp_app.cab">
   <PARAM NAME = "fileName" VALUE = "MyDoc.xxx">
</APPLET>
</BODY>
</HTML>

See also
URL PARAM tag