Using CGIDEV2 Examples
Dec 24, 2015
Using CGIDEV2
Examples
Web Resources
• Partner 400 http://www.partner400.com/Downloads.htm
• Scott Klement http://www.scottklement.com/presentations /#RPGWEB
• Scott Klement http://www.scottklement.com/presentations
• Antoon Van Os http://www.ecole-marymount.fr/pdffiles/24052005%20WebProgramming%20ILERPG%20ppt%20(2).pdf
• http://www.easy400.net/
Templates
Tags in CGIDEV2
• /$
• <as400>
• /%myfield%/
Hidden fields
• Pros• Easy way to
determine state.• Can edit the source of
the web page to see the values
• Cons• Can edit the source of
the web page to see the values. (Spoofing potential)
Cookies
• Can be temporary for just the session• Can store on the user’s PC• Cam contain a session ID• Can be encrypted. • Good way to maintain basic signon information
about the user.• Can be used in conjunction with data and hidden
fields• Examples given in the CGIDEV2 source