• Create a file called web.xml in doctest/WEB-INF folder with the following content:
<web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
• Create a Hello.htm web form to call a COBOL servlet called HELLO:
<H2>Doc isCOBOL Example.</H2><H3>This example shows how easily you can compose an HTML page with an isCOBOL program running on the web server. The HTML page is composed by two parts an header and a footer. In every part of the HTML page, the isCOBOL program moves a message and between the two sends the text: "Hello world from isCOBOL".</H3>
• Create a Header.htm as follow:
<H1>This is the Header HTM form of this isCOBOL example</H1>
• Create a Footer.htm web form as follow:
• Create a HELLO.cbl COBOL Servlet program as follows:
•
iscobol.http.html_template_prefix=webapps/doctest
| Copyright (c) 2017 Veryant |
| Contact us |
|
Please share your comments on this manual or on any Veryant product documentation with the email button at the top left |