|
To provide an answer from your program to the web user,
your program should send out an HTML string.
In a RPG program, without using Mel's service program,
you should prepare your html string and write it out using
the Write to Stdout (QtmhWrStout) API.
Preparing such a string in a program, while not easy, suffers
of unflexibility. Any time you want to change something in the
output HTML (texts, fonts, alignments, href, gifs, etc.),
you must change your program.
In a normal AS/400 program you would have
greater flexibility just using an externally defined display file.
Mel's service program provides a technique as flexible as
DDS, but even simpler to use. This technique is called
There are two ways you can develop external HTML
This is how you implement it (it takes more to tell than to use it):
- Create a source physical file named HTMLSRC (record format
name MUST be HTMLSRC) with record length 240
(MUST not be more than 240).
You may then rename this source physical file, if you want;
its record format would still be HTMLSRC.
Note 1.
A file HTMLSRC is automatically created in your
object (production) library when you use command
setcgilib.
- Add a member named as you like (we recommend to specify HTML for the SEU type).
- Divide your source into sections.
|