-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
67 lines (60 loc) · 2.86 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<html>
<head>
<link rel="stylesheet" type="text/css" href="/System/Styles/IceBreak.css"/>
<link rel="stylesheet" type="text/css" href="/System/Skins/IceBreakAdmin/application.css" />
</head>
<div id="TitlePane">
<div id="TitlePane-Text">Welcome to IceBreak</div>
</div>
<img src="/system/images/server_information32.gif" alt="Current server" class="TitlePaneIcon" />
<p> </p>
<p>Congratulations!! Now you have your first IceBreak server up and running. Now it is time to make it work for you.</p>
<p> </p>
<p> </p>
<p>One of the key features is to use RPG (or any other ILE language) as a host language for running web application. The key concept is the server root path on the IFS and the application library where the program object is stored.</p>
<p> </p>
<p>If we first take a look at the server root path, then you will see something similar to:</p>
<p> </p>
<img width="381" height="274" src="/system/images/myfirst.png">
<p> </p>
<h2>The server root content:</h2>
<h3>webConfig.xml</h3>
<p> </p>
<p>The webConfig.xml contains a list of runtime properties for the web application. Where to upload files, routing, hives among other advanced features. The features are described within the webConfig.xml.</p>
<h3> </h3>
<h3>Index.html</h3>
<p>This is the file you are reading right now</p>
<h3> </h3>
<h3>intermediate</h3>
<p>Is a folder for temporary data, it is a work folder for compiler, sessions, and images.</p>
<p> </p>
<h3>.vsCode</h3>
<p>This is compiler support and development support for Microsoft vsCode environment. It is a free alternative to Microsoft Development studio. Please fell free to download it from here:</p>
<p> </p>
<p><a href="https://code.visualstudio.com/">https://code.visualstudio.com/</a></p>
<p> </p>
<p>When installed then search for RPG in vsCode extensions to get full edit and compile support for ILE rpg.</p>
<p> </p>
<h3>system</h3>
<p>
The system folder contains shared resources between server instances along with system resources. Note: The system folder is a symbolic link to the /IceBreak/system folder, so do not delete any files with in it. Rather disable the system folder hive in the webconfig.xml file.
</p>
<p> </p>
<p> </p>
<h2>Next Step:</h2>
Follow the programmers guide and make the first program
<p> </p>
Simply paste this into you editor, and save it as "hello.rpgle" on server root path.
<pre style="font-family:monospace;background-color:black;color:#89beed;margin-left:10px;margin-right:10px">
<%@ language="RPGLE"%>
<%
ctl-opt main(sayHello);
dcl-proc sayHello;
dcl-s message varchar(256);
// Get the data from the URL
message = qryStr('message');
// Send the response back
%>Hello world. <%= message %>, time is <%= %char(%timestamp())%><%
end-proc;
</pre>
</html>