- have some fun first
Run the CGIDEV2
Boats catalog demo,
just to appreciate what you can do with CGI's written with CGIDEV2
- if you do not know anything about HTML
walk to a library and by a booklet on html.
It doesn't have to be a thick html reference manual
(you'll buy that later, perhaps), what you need is
a quick walk through and a syntax primer for the most
common html commands.
As an alternative, you may access our classic
HTML tutorial
and have your home study on HTML.
On the other site you will learn a lot just
browsing the source of the html pages that you see.
As an example, to browse the source of this html page
clicking on this page with the right mouse
and select View page source
- get some introduction on what is a CGI
and on the benefits
of CGIDEV2 service program.
-
Read our page on
benefits of CGIDEV2 service program
-
Read Giovanni's flyer on RPG CGI development with CGIDEV2
-
Read Giovanni's editorial on RPG CGI development with CGIDEV2
- read the basics of CGIDEV2 service program
Go to the
first page of our
CGI tutorial,
and read down to and including
Main functions
Just grab the idea of how you can work
using CGIDEV2 service program to interface the
HTTP APIs
instead of calling them directly.
The basic services are
- get the input string from a remote browser
- parse this input string
- use an externally defined html skeleton
member to produce your output html
as a response to the remote browser
- look how these basics are implemented in three small demos:
-
the CGI used to check out your AS/400 http server,
Hello.
-
a CGI providing you with its
opinion
about any subject of your choice
-
a CGI which teaches how to substitute
subfiles with HTML tables,
"Our delivery times".
- look how these basics are implemented in one of
Mel Rothman's Computer Discount House Demos
These demos ask some input from you
and provide it as output html to your browser,
as the CGI behind it were your echo.
The nice of this demos is that they allows you
to check whether the CGI's behind them
work all right or not.
Try!
- if you need more advanced examples ...
-
Get inside our Boats Catalog Demo
-
Use our facility
Learn from Sources
to go through the sources of our CGIs.
- now it's your turn
Add an html input variable to one of the Mel's
Computer Discount House Demos
(we suggest you take nuber 3 of them):
for instance, What is your preferred pet.
- Implement this input question in the bootstrap html
(member talk13
in file cgidev2/htmlsrc)
- Add the response scheme in the external html
(member talk2
in file cgidev2/htmlsrc)
- Then change the ILE-RPG program
(member template3
in file cgidev2/qrpglesrc)
so that it echoes the input value to the
response html.
- your first CGI
Then develop your first CGI.
FAQ number 7
summarizes what you have to do to be successful.
As soon as your first CGI runs,
you get an AS/400 CGI apprentice license.
- your manual
has a name:
AS/400 eSeries -
HTTP Server for AS/400 -
Web Programming Guide,
Document number GC41-5435
For more information, please consult our
bibliography.
|