<<

Contents

Search

>>

 

Html Program

 

Three program files are created when a Html program is generated:

 

1. <Program Name>.html is installed at the webserver as index.html.

2. <Program Name>.war is installed at the webserver.

3. <Program Name>_Html_2T.jar is processed by the Ebus-2T-Server.

 

Html Programs can also be called from individual Html pages.

An example you will find with  #ADD_WARFILE.

 

The communication between the programs is shown here:

 

 

In the browser (e.g. Mozilla) on the client computer the site <Program Name> is started.

Attention: In the browser only <Program Name> has to be entered, not <Program Name>.html !

The address of the site is subject to the usual calling conventions.

 

Examples:

 

http://localhost:8080/<Program Name>

Starts the program on the local computer if there is installed the webserver under port 8080.

http://192.168.1.25:8080/<Program Name>

Starts the program in the network on the computer with the IP address 192.168.1.25. There the webserver has to be installed under port 8080.

http://www.xyz.de/<Program Name>

Starts the program over the internet with the address www.xyz.de.

 

The file <Program Name>.war has to be installed with a servlet supporting webserver (see Apache Tomcat).

 

The file <Program Name>_Html_2T.jar has to be copied to the directory of the Ebus-2T-Server.

 

 

Procedure when a Html program is started

 

The program <Program Name> is started in the browser. The browser establishes the connection to the webserver with the given address. There the file <Program Name>.war has to be installed. The webserver starts the servlet <Program Name>_Servlet.jar which is contained in <Program Name>.war.

 

The servlet <Program Name>_Servlet.jar communicates with the Ebus-2T-Server which starts <Program Name>_Html_2T.jar.

The servlet has to know the address of the Ebus-2T-Server and <Program Name>_Html_2T.jar has to be in the directory of the Ebus-2T-Server.

 

The address of the Ebus-2T-Server can be told to the servlet as follows. Notice that the address has to specified from the viewpoint of the webserver. E.g. if the webserver is within a local network and COMPUTER1 is the address of the Ebus-2T-Server then the local network has to contain a computer with the name COMPUTER1.

 

1.

The address of the Ebus-2T-Servers is specified by the compiler instruction #HTML_HOST in the program source code..

2.

If there is no compiler instruction #HTML_HOST, the servler tries to read the file ebushost.dat on the webserver. If this file exists and is not empty the address is read from this file. If no address is found localhost is used. ebushost.dat has to be in the program directory of the webserver: e.g. .../webapps/<Program name>

 

 

With Html programs there a several restrictions. Because of safety reasons access to data of the client computer is not allowed. Instructions and variables which are not available with Html programs are marked with the following symbol: