WebSpeed
Developer’s Guide


A Simple Query

The following shows the content of w-sstcst.html, which is one of the Web object example files found in the example directory:

w-sstcst.html 
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Sports Customer List</title>
</head>

<body BGCOLOR="#FFFFFF">
<h1>Customer List</h1>
<table border>
    <tr>
        <th>Customer ID</th>
        <th>Customer Name</th>
        <th>Phone Number</th>
    </tr>
    <script language="SpeedScript"> 
        FOR EACH Customer:
    </script>
    <tr>
        <td align=left>‘CustNum‘</td>
        <td align=left>‘Name‘</td>
        <td align=left>‘Phone‘</td>
    </tr>
    <script language="SpeedScript"> 
        END.
    </script>
</table>
</body>
</html> 

This example illustrates the two basic WebSpeed tags used with embedded SpeedScript:

Figure 4–1 shows the output when you compile and run w-sstcst.html.

Figure 4–1: Running w-sstcst

WebSpeed supports several alternative tags for both statement and expression escapes to ensure that you can use tags acceptable to your authoring tool. For more information, see the "Statement Escapes" and "Expression Escapes" sections in SpeedScript."


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095