|
I use a source file (QHTMLSRC) with named place holders (%CUSNAME%). I created a subroutine which writes the HTML. It accepts the source file name, member name, and pairs of place holders and the corresponding data. For example: CALL 'SNDHTML' PARM 'QHTMLSRC' PARM 'CUSTHTML' PARM '%CUSNAME' PARM CustName PARM '%ADDRESS%' PARM Custname . . . > ---------- > From: David Gibbs[SMTP:david.gibbs@silvon.com] > Sent: Tuesday, May 19, 1998 7:41 AM > To: midrange-l@midrange.com > Subject: CGI programs in ILE RPG > > Greetings! > > I'm playing around with a CGI program in RPG to display some > information from our application as a web page... I'm curious as to > what approach people are using to build the HTML that the CGI program > generates. > > Currently, I've got the HTML defined as a compile-time array and I'm > just kicking through the array, substituting field data in > placeholders in the array. Kinda like... send lines 1 through 5, > setup line 6, send line 6, setup line 7, send line 7, setup line 8, > etc... > > While it works fine, it's quite tedious... are there better > approaches? > > TIA! > > david > > -- > > David Gibbs > Sr. Software Engineer > Silvon Software > 900 Oakmont Ln, Suite 400 > Westmont, IL 60559 > (630) 655-3313 x6479 > http://www.silvon.com > mailto:david.gibbs@silvon.com > > Opinions expressed are strictly my own and do > not necessarily reflect those of my employer > > You'll only see your obstacles each time you take > your eyes off of your goal! > > -- DMRoth > +--- > | This is the Midrange System Mailing List! > | To submit a new message, send your mail to MIDRANGE-L@midrange.com. > | To unsubscribe from this list send email to > MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: > david@midrange.com > +--- > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
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.