>>...making the slightest change involves modifying 
>>and recompiling an RPG program.  All of which makes 
>>a very unproductive environment.

You mean with HTML embedding in RPG, right? Otherwise with CGILIB or
CGIDEV2, it is externalized and you do not need to change the RPG simply
because you want the HTML to look different. Nor do you need to change the
HTML simply because the RPG code changes. --Just trying to be clear on this.

>>Am I correct in assuming that a lot of it is under programmer control at
>>runtime?  For example, do you have to populate a variable with the
>>length of an input field.  With a good, thin JSP approach, you simply
>>identify the attributes of the fields and let the infrastructure format
>>the HTML tags.  I'm not saying you couldn't do the same with RPG-CGI,
>>it's just that I haven't seen anything like it in any of the packages.

With CGILIB and RPG, you copy the data to the token/tag in the HTML and the
infrastructure puts it out there. Does it format it? No, the RPG program
would need to format it, but mostly it is just %char() or %EditC() kind of
formatting. For example, to set the field named CONTACT to "Bob Cozzi" you
would code:  callp  cgiSetVar('CONTACT' : 'Bob Cozzi')
Of course you could use fields in the RPG code instead of literals.


-Bob




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.