Jump to content

ATL Server

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Pedram.salehpoor (talk | contribs) at 13:41, 20 September 2007. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconC/C++ Unassessed
WikiProject iconThis article is within the scope of WikiProject C/C++, a collaborative effort to improve the coverage of C and C++ topics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
???This article has not yet received a rating on Wikipedia's content assessment scale.
???This article has not yet received a rating on the importance scale.

ATL Server is a technology for developing web based applications. It uses a tag replacement engine written in C++ to render web pages. It draws on the existing technologies like ISAPI and the Active Template Library. It includes a template library which is dedicated for use with developing web based applications. ATL Server first appeared with Visual Studio .NET 2003.

A typical ATL server application consists of at least one ISAPI extension DLL along with one or a number of Server Response Files (.srf) and their associated application DLL files which provide the application functionality.

SRF Files

SRF files can contain a mix of HTML and script tags. SRF script tags are denoted by the {{ opening and }} closing braces.

A single SRF file may call code from a number of application DLLs. Similarly, a single application DLL may serve a number of SRF files.

The simplest SRF file must contain a one or more references to application DLLs and one or more calls to a functions within those DLLs. A simple SRF file would look something like this:

{{handler ATLServerHelloWorld.dll/Default}}
<html>
<body>
{{HelloWorld}}
</body>
</html>

The first line of the file:

{{handler ATLServerHelloWorld.dll/Default}}

is used to identify an application DLL file that the SRF file will make calls to.

Within the file, function calls would look like this:

{{HelloWorld}}

References