The potential for GNU Cobol and the web is pretty astounding, or at least, that's how I've been feeling, trying to come to grips...
Anyway, here is a web bundle sample for the ever growing gnucobol-cobweb.cob.
I'm pretty sure, and in particular, that Report Writer code from all the way back, till now, will compile with GNU Cobol and Ron's Report Writer. Add a simple html pre block, and redirection to standard out and reports can be delivered to web pages, all nicey nice.
# cobweb default bundle, command names with call library entry point and hint documentation
say Welcome to cobweb.
say using cob.web, modify to please, or set COBWEB to site web bundle
# cobweb control file.
# FIXED form. 1-7 tag, 8-31 command, 32-71 CALL linkname, 72-132 short doc.
# COUPLED to working-storage in gnucobol-cobweb.cob
# Supported tags (in v0.1): cmd, COMMAND, say, cgi, help, #, COMMENT, inc, COPY, blank spaces
# 1 2 3 4 5 6 7 8
# command callable doc
cmd help cobweb-help Internal
cmd version cobweb-version Internal
cmd --help cobweb-help Internal
cmd --version cobweb-version Internal
cmd visual gtk-cobweb Put up a GUI, preferably Broadway
cmd batman batman Poor Robin
cmd joke batman
cmd corn buccaneer What do pirates pay for corn
cmd pirate buccaneer
cmd occside occside-about All about Open COBOL by the C Side Inc.
cmd about occside-about All about Open COBOL by the C Side Inc.
cgi about occside-about All about Open COBOL by the C Side Inc.
cgi occside occside-about All about Open COBOL by the C Side Inc.
# something a little more serious
cmd report RWEX06 Jay Moseley's awesome Report Writer sample
cgi report RWEX06 Jay Moseley's awesome Report Writer sample
sizing might change...
By the way, with GNU Cobol programs compiled with GTK+ 3, and Broadway, the command
./gnucobol-cobweb visual calendar
shows up in the browser, as a gui, in the browser, as a gui.
Discussion: opencobol and web services