SIMPOL Documentation

The Web Server "Sandwich" Method

Many web server applications can be seen as the filling inside of a web page. The part of the web page that precedes the place in the content where the output of the program is placed is the top piece of bread, and the part that follows the content is the bottom piece of bread. In some cases it may be necessary to have 3 chunks of HTML that represent the page, the top part, from the initial HTML declaration down to the place in the header where the basehref is inserted, then the remainder of the header plus the start of the body, and finally the remainder of the body and the footer. In SIMPOL we use this approach quite heavily. A program can be made to look like a part of any target system by taking a typical page from that system, dividing it into the necessary chunks, and then using the SBISInclude() function to read those chunks of HTML from the storage media when the program is run on the web server. It is fast and efficient.