Iv. jmtmacms component requirements, Jar file for the jmtmacms applet, Library file – MagTek JMTMacMS Applet User Manual

Page 6: Javascript file

Advertising
background image

JMTMacMS Applet Programmer’s Guide

2

IV. JMTMACMS COMPONENT REQUIREMENTS

The directory on the host Web Server must contain the following four components and

these files must be in the same directory.

1.

Jar file for the JMTMacMS Applet


JMTMacMS.jar

2.

Library file


libMTMacHID.jnilib

3.

HTML Page

In order to use JMTMacMS Applet, the applet is embedded in a HTML page inside <applet>
tag. For example:


<applet

codebase=”http://www.testserver.com/”
code=" JMTMacMS.class"

name="JMSR"

archive=" JMTMacMS.jar" MAYSCRIPT

>

<param name="cache_option" value="No">
<param name="classloader_cache" value="true">


</applet>

The codebase parameter must be set to the URL of the web server where the applet is

located. In the example, the codebase is set to

http://www.testserver.com

where the server

location “testserver.com” contains all four components described in this section.


The classloader_cache parameter must be set to true to avoid Java IO exception when

JMTMacMS applet is destroyed and restarted in the same browser’s session, i.e.: when a browser
is refreshed.

4.

JavaScript File


The JavaScript file contains the JavaScript API functions.

Advertising