Structure and Configuration
This chapter describes how to use the user scripts provided in the WebTerminal.
1. war File Structure
The following is the war file structure:
+<WebTerminal.war> +-- css +-- icons +-- resources |-- webterminal.properties |-- webterminal-shortcut-table.json +-- scripts +-- uilib +-- WEB-INF |-- classes |-- jeus-web-dd.xml |-- web.xml +-- META-INF |-- wsgateway.html
The following describes the folders and files in the webterminal.war file:
- css
-
Contains css files for screen and print output.
- icons
-
Contains loading screen images, and input field mark images.
- resources
-
Stores the following files for using WebTerminal.
File Description webterminal.properties
Stores the configuration information of the web terminal engine. For more information, refer to Configuration File.
webterminal-shortcut-table.json
JSON-formatted file that lists the shortcut key settings loaded by the web terminal engine.
The following is a part of webterminal-shortcut-table.json file.
{ "CLEAR": [["R-CTRL", "ENTER"], ["PAUSE"]], "CURSOR_SHAPE": [["R-CTRL", "INSERT"]], "ENTER": [["ENTER"]], "ERASE_EOF": [["R-CTRL", "SHIFT", "F4"], ["SHIFT", "DELETE"]], "ERASE_EOF_TAB": [["R-CTRL", "SHIFT", "H"]], "IME": [["HANKAKU/ZENKAKU"], ["KANJI"]], "FIRST_FIELD": [["HOME"]], "PREVLINE_TAB": [["PAGE_UP"]], "NEXTLINE_TAB": [["PAGE_DOWN"]], "SELECT_ALL": [["ALT", "A"]], "DISCONNECT": [["ESCAPE"]], "RESET": [["L-CTRL"]], ... }
- scripts
-
Contains JS files for communication and screen output.
- uilib
-
UI library directory used in the WebTerminal.
- META-INF
-
Contains DD (Deployment Descriptor) files (not used in the WebTerminal).
- WEB-INF
-
Contains the class and configuration files required for executing a web application.
Contains web.xml file (Java EE standard web application), and jeus-web-dd.xml file (JEUS web application DD).File Description web.xml
A configuration file that sets the page to display automatically when url is specified with the context name to access the application.
jeus-web-dd.xml
Configuration file that sets the <context-path> of an application.
- wsgateway.html
-
HTML file for the initial screen display.
2. Configuration File
The WebTerminal configuration file, webterminal.properties, is in the following resources folder. The settings in the file are applied to the WebTerminal when you refresh the browser.
The file is located in the following path.
$JEUS_HOME/domains/<domain_name>/servers/<server_name>/lib/application/webterminal/resources
The following are the items in the webterminal.properties file.
# Webterminal configurations cpm = {US | JP | KR | FI | FR | JEF | TW} sosi = {true | false} size = {24:80 | 32:80 | 43:80 | 27:132} caps_lock = {yes | no} auto_tab = {yes | no} auto_tab_paste = {true | false} mask = {ip, port, lu} rtrim = {true | false} load_shortcut = {true | false} use_ime_input = {true | false} help_url = protect_numeric = {true | false} remove_newline = {true | false} reset_insert = {true | false} # Color configurations prot_intens = color prot_normal = color unprot_intens = color unprot_normal = color default_fg = color
Item | Description |
---|---|
cpm |
Character code page for the user’s language. (Default: US)
|
sosi |
Option to use SOSI.
|
size |
Option to set the size of the Alternate Screen for using the web terminal.
|
caps_lock |
Option to input all alphabet letters in uppercase.
|
auto_tab |
Option to enable automatic cursor movement.
|
auto_tab_paste |
How to handle remaining data if not all clipboard data was pasted in the input field. (Default value: True) If auto_tab is set to no, the input stops at the end of the field regardless of this setting.
|
mask |
Option to mask user’s login information on the screen after logging into WebTerminal. Use a comma (,) as a delimiter to specify multiple options.
|
rtrim |
Option to remove the newline character CRLF (\r\n) from the end of the string.
|
load_shortcut |
Options to import shortcuts from the webterminal-shortcut-table.json file to determine whether to apply the same shortcuts to all clients connected to the WebTerminal.
|
use_ime_input |
Option to use the INPUT BOX for character selection on the terminal screen when inputting combination characters such as Korean, Chinese, or Japanese. INPUT BOX uses the IME provided by Windows, and when not using the INPUT BOX, the IME function of the web browser is used.
|
help_url |
The URL to display a new web page related to the current terminal screen. Currently, it is supported only when connecting with OSC7. Displays the web page screen with the address completed up to the MAP name of the printed screen after the value (URL value) defined in help_url, when the key defined in HELP Function is entered in SHORTCUT. HELP Function is activated in the [SHORTCUT] menu only when a value is specified in help_url. The WebTerminal provides the function of displaying the web page with a URL value including the MAP name, and the data to be printed on the web page can be freely created and used according to the customer’s environment. (e.g. MAP-related help screen displayed on the current terminal) |
protect_numeric |
Sets for the default value of character input processing in the numeric property input field.
|
remove_newline |
Option to remove the rightmost newline character CRLF (\r\n) from the string to be pasted.
|
reset_insert |
Sets for INSERT MODE after performing the RESET function.
|
Color configurations |
Colors supported by HTML. The value can be found in CSS Color Value.
|
Additional Configuration Files
Additional configuration files are located in the following path:
$JEUS_HOME/domains/<domain_name>/servers/<server_name>/lib/application/ofgwconf/
File | Description |
---|---|
initScreen.txt |
Initial screen display. |
ofgw.properties |
Database, Tmax, and WebTerminal settings. |
For information about each configuration item, refer to OpenFrame GW Administrator’s Guide. |