Deploying with HTML
To deploy JDesignerPro and your applications, use the Deployment feature in the Application Builder area. In there you will find Local and Remote Deployment functions and automatic HTML aplet tag creation. For details see the Deployment Manager.
You can also manually add the following applet tag to the bottom of an HTML page.
<applet codebase="http://localhost/JDesignerPro/" code=JDesignerPro.class width=10 height=10>
<param name="JDPSystem" value="01001">
</applet>where you would substitute "localhost" for either the IP address or the domain name of your machine. When a user comes to the HTML page that contains this applet tag, their browser will automatically kick off the applet by loading and launching it.
Applet Tag Properties:
- Applet. The tag, <applet...>, </applet>, is used in any HTML page to kick off a Java application. Generally it is put at the end of the HTML source code.
- Codebase and Code. These two parameters point to the host machine and directory path of your JDesignerPro system. The code tag points to the JDesignerPro class file path. The code parameter should not be changed.
- Width and Height. These two properties affect the default launch size of the JDesignerPro application. These settings affect only the size of JDesignerPro if run embedded in the web page. JDesignerPro loads to 640x480 pixels by default if you are running it outside the browser. When run outside the browser, the user can resize the application to their liking and the JDesignerPro system will maintain that size the next time the user logs in.
- Param. The abbreviation "param" is for parameter. You can place any number of compatible parameters between the start and end of the applet tag. These parameters are variables that are passed to the JDesignerPro system to affect how it launches.
Name. The tag, <param name...> is used to send the value of the JDPSystem you want to load from this page. The syntax is: name= "JDPSystem" value= "XXXXX", where XXXXX is the 5-character name of the system to load.
One other name parameter is the user id. You can pass JDesignerPro the name of a user in the applet tag to login in automatically as that user, such as Guest. The syntax is:
<param name="JDPUsername" value="username">
<param name="JDPPassword" value="password">