OK, so the HTML in your web application has been fixed and it is looking pretty good. But, now look at the comment form you were left with! It simply does not work. Bummer.
We will first fix the ILE RPG program. Then, while that is compiling we will fix the HTML form and take a look at your HTTP configuration.
Description | Value |
The URL to your web application | http://internut.rchland.ibm.com/ITSOICnn/welcome.htm (or) file:///c:/ITSOICnn/welcome.htm |
Web application is located on the AS/400 | /ITSOICnn/* |
Web application is located on your PC | /ITSOICnn/* |
You will be fixing links and graphics in this HTML file | /ITSOICnn/imvh501.htm |
You will be fixing ILE RPG code in | ITSOICnn/QRPGLESRC member IMVR501 |
AS/400 userid and password | ITSOICnn ITSOICnn |
AS/400 system name | host09 |
PC system name | hostnn (for example, team01's system name is host01) |
The URL to a working example | http://internut.rchland.ibm.com/ITSOIC.400/imvh501.htm |
*<!--???!! Lab 2 !!??????????????????????????????????-->
Make sure the compile does not fail. While it is compiling, you could move onto the next section...
<!--???!! Lab 2 !!??????????????????????????????????-->Answer to Question 2.
Question | Answer |
Question 1: What is in the QTCP/QTMHCGI service program that your ILE RPG application needs? | QtmhRdStin: to read from stdin QtmhWrStout: to write to stdout QtmhCvtDb: to parse the input parameters and place them in a DDS defined database file that is very convenient for RPG and COBOL to read from. QtmhGetEnv: to read an enviroment variable, if needed. Return to Question 1. |
Question 2: How will "/BonusCGInn" be mapped to your web application libary ITSOICnn on the AS/400? | Use the WRKHTTPCFG command to look at the directives for your team. Here an Exec directive will map /BonusCGInn/* to /QSYS.LIB/ITSOICnn.LIB/* which is the fully qualified path in which you placed the IMVR501.PGM CGI program. Return to Question 2. |
cgl010