ESEMPIO:
<table border="1">
<thead>
<tr>
<th>Dipendente</th>
<th>Sottocategoria bene</th>
<th>Data richiesta</th>
<th>Motivazione</th>
<th>Esito</th>
</tr>
</thead>
<tbody>
<% while(rs.next()) { %>
<tr>
<td><%= rs.getInt("dipendente") %></td>
<td><%= rs.getString("sottocategoria_bene") %></td>
<td><%= rs.getDate("data") %></td>
<td><%= rs.getString("motivazione") %></td>
<td><%= rs.getString("esito") %></td>
</tr>
<% }
rs.close();
st.close();
%>
</tbody>
</table>
SINTASSI:
<table> apre la tabella. oppure: <table border="N"> apre una tabella con bordo "N".
<tr> "table row" apertura riga
<td> "table data" indica una cella all'interno di una riga.
ESEMPIO:
<table border="1">
<tr>
<td>prima cella</td>
<td>seconda cella</td>
</tr>
<tr>
<td>terza cella</td>
<td>quarta cella</td>
</tr>
</table>
Iscriviti a:
Commenti sul post (Atom)
Nessun commento:
Posta un commento