Adam

Adam Lang wrote:

> I agree.  Your RPG program SHOULDN'T write the html.  That would mean
> everytime you want to redesign your pages, you need to recompile.

It doesn't need to mean this.  I have separated all the presentation logic for
my neural database tool into one RPG program.  This inserts 5250 attributes or
HTML or PCL escape codes into the datastream on the fly.  This one program does
the lot - it is used used for both the development and the operational
environments. With observability removed, it is less than 1Mb of code. It
generates sub-files, but I haven't used SFLCTL, etc. keywords for many years.
The screen, web page and print definitions are stored in the database along with
the user data, so if you want to change the layout, you change the database, not
the RPG.  It could easily generate XML as well if I could find a use for it.

> It also
> means your RPG programmer has to be your web deveoper too, or atleast have
> extremely good communication with him..
>
> Your RPG code should just return straight data.  Then you have your ASP page
> actually do the formatting.
>
> Adam Lang
> Systems Engineer
> Rutgers Casualty Insurance Company
> http://www.rutgersinsurance.com
> ----- Original Message -----
> From: "Walden H. Leverich" <WaldenL@TechSoftInc.com>
> To: <midrange-l@midrange.com>
> Sent: Friday, January 04, 2002 11:24 AM
> Subject: RE: Web enablement options (previously private)
>
> > > The RPG program writes the HTML page.
> >
> > Ah, but then you haven't completely separated your business logic from
> your
> > presentation have you? Sure you could change the layout of the page, but
> > what about using the same logic to process XML, or exposing that logic via
> a
> > Web Service using SOAP? You'd have to rewrite the AS/400 program again,
> no?
> >
> > -Walden
>
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
> To post a message email: MIDRANGE-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
> or email: MIDRANGE-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.

--
Best wishes

Rob
________________________________________________________

Erros plc

44 (0) 1844 239 339

http://www.erros.co.uk - The AS/400 Neural Database for the Internet

_________________________________________________________




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-2022 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.