Skip to main content

CSP:Query HTML

Here is the updated code for TopPicks.csp. Note the <csp:query> tag.

<html>
<body>
<h2><font color="#0000FF">Today's Top Picks</font></h2>
<table border=0>
<csp:query name="FilmList" classname="Cinema.Film" queryname="TopFilms">
    <tr>
        <td> </td>
        <td> </td>
    </tr>
</table>
</body> </html>
Note:

This tutorial assumes that you are already familiar with HTML. If not, we have included a quick introduction.

Throughout this tutorial, the HTML we display has been streamlined by leaving out some formatting tags and attributes so that it is easier to focus on the essence of CSP. The complete HTML can be viewed in the .csp solution files for the Cinema application contained in the SAMPLES namespace.

FeedbackOpens in a new tab