Replacement Tag Reference

This section presents and discusses each tag that is implemented in Server Response Files.

Here is an example of a basic .srf file. Tags are italicized.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- BIS control tags (removed when page is rendered) -->
<!-- {{ handler * }} -->
<!-- {{ Trace(queryparam=trace) }} -->
<!-- {{ StartService(samp03.acu) }} -->
<html>
<head>
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title> COBOL Web Server Demonstration Page</title>
</head>

<body>
    <div align="center">
        <h3> COBOL Web Server Demonstration Page</h3>
    </div>
    <p>--- Begin Application-Generated XHTML ---</p>
    <div>
        {{ XMLExchange(OnExit="goodbye.srf") }}
    </div>
    <p>--- End Application-Generated XHTML ---</p>
    {{ TraceDump }}
</body>
</html>
Note that the first three tags in this example are embedded in HMTL comments. This is not strictly necessary from an operational standpoint (and may be undesirable because empty comments will be sent to the browser), but useful to keep an HTML editor like Microsoft FrontPage, Expression Web, Visual Studio or Adobe Dreamweaver from reformatting the text in the handler tag, or possibly splitting the tag across multiple lines. Some of these products support the server response file syntax directly and do not have this issue.