ho provato a fare una cosa del genere:
codice:
        <jsp:useBean id="sql" scope="page" class="operazioni_database.Leggi" />
        <table>
            <thead>
            <th>
                <jsp:getProperty name="sql" property="nomeColonne" />
            </th>
        </thead>
        <tbody>
            <tr>
                <td>
                    <jsp:getProperty name="sql" property="line" />
                </td>
            </tr>
        </tbody>
    </table>
ovviamente l'output è parecchio disordinato.
in pratica dovrei fare in modo che in automatico crei tanti tag th e tr/td a seconda del risultato della query.
è possibile??