× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Or you could use SSI's (Server Side Includes) which is a feature of Apache
and doesn't require any CGI related things (i.e. you don't need to write any
RPG programs and it works in static HTML pages).

For example, put this in your .html file:

<!--#include virtual="/header.html" -->

Then in your Apache config you need the "Options +Includes" directive as
follows:

<Directory /www/apacheinstancename/htdocs>
Order Allow,Deny
Allow From all
Options +Includes
</Directory>


Aaron Bartell
http://mowyourlawn.com
http://mowyourlawn.com/blog/


On Wed, Jun 9, 2010 at 10:58 AM, David Gibbs <david@xxxxxxxxxxxx> wrote:

GKern@xxxxxxxxxxxxxxxx wrote:
Is there a way to utilize what we know as RPG copybooks in HTML?

We have a standard 'header' that we want to put in all of our web pages
and want to only have it coded in one place. Would this be an include
directive?

In HTML: No. HTML is just about rendering text.

You need to use a higher level language ... such as PHP or JSP.

In PHP you would use '<?php include("filename.php"); ?>'.
In JSP you would use '<%@ include file="filename" %>'.

david

--
IBM i on Power Systems - For when you can't afford to be out of business
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.