Lecture overview -- Keyboard shortcut: 'u'  Previous page: Mixing XML and program fragments  -- Keyboard shortcut: 'p'  Next page: Program hosting -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    Slide 7 : 30

Markup hosting
Program fragments appear as constituents in a complete XML document
<html>
  <head> <title> JSP Example </title> </head>
  <body
    <table border=2>
    <%
        for ( int i = 0; i < n; i++ ) {
            %>
            <tr> <td>Number</td>
                 <td><%= i+1 %></td>
            </tr>
            <%
        }
    %>
    </table>
  </body>
</html>