Pascal server page


A Pascal Server Page is a dynamically generated web page produced using some sort of Pascal Script interpreter on the server side. When a web request is made, the Pascal Script code gets interpreted on the server and made output into the proper format.
An example of Pascal Server Page as deployed on the server :



A Pascal Server Page


<% begin
Write;
end.
%>

Using Pascal Script to write a few numbers...


<% var
i: Integer;
begin
for i:=1 to 10 do
Writeln;
end.
%>



The code above is an HTML armature containing Pascal Script code. The Pascal Script has been isolated within the “<%” and “%>” tokens. The Pascal Script code is interpreted on the server and the output is embedded into the HTML template. If a browser asks for the page above, it will actually get plain HTML code as the one below :



A Pascal Server Page


Hello World

Using Pascal Script to write a few numbers...


1
2
3
4
5
6
7
8
9
10



To deploy and run Pascal Server Pages, a web server component with Pascal Scripting capabilities is required.