To run Elastic COBOL programs as web applications, we first need to install a Web Application Server. For this example we are going to use Apache Tomcat 7 which can be downloaded and installed for free. Start a graphical session ($ sudo startx) on your Pi and open up a command console (Start > Accessories > LXTerminal):
You can fill out the form (required fields are in bold), or you can simply scroll down to the bottom of the form and click "Register Software".
If you have not filled out all the required forms you should see a response from the Elastic COBOL register servlet that looks similar to this:
You can click on "register.cbl" at the top of the page to view the application source in the browser.
Updating the Application
A fast alternative to deploying via Tomcat's Web Application Manager, is to "hot deploy". This involves copying the application package (.war) directly into Tomcat's deployment directory. Tomcat will recognize this, and automatically undeploy the old application and then deploy the new one. This can be very useful when developing an application in an iterative manner. In your command console:
$ cd $HOME/ec4rpi/samples/servlet-register/resources
$ vi register.cbl # make any change -- e.g. change the contents of the data item SOMEONE.