Caché Web Applications Tutorial
Using Query Data in a Web Page
[Home] [Back] 
InterSystems: The power behind what matters   
Class Reference   
Search:    

Let's add to the HTML generated earlier by Studio (and shown at right in black.)

Our first step is to add a <csp:query> tag that identifies the query we want to use by its class name (Film) and query name (TopFilms). We also give this tag a name (FilmList) so that we can refer to it later.
<html> <body> 
<font color="#0000FF" size="+2"><b>Today's Top Picks</b></font>
<table border=0>
<csp:query name=FilmList classname="Film" queryname="TopFilms">
    <tr>
        <td> </td>
        <td> </td>
    </tr> 
</table> 
</body> </html>