如何在每个返回的结果集上应用 bootstrap jumbotron class?

how to apply bootstrap jumbotron class on each resultset returned?

我正在做一个 java 项目,我从结果集对象中获取行并将其打印在 table 中,现在我想要的是从数据库中检索的每一行应该显示在单独的 jumbotron(bootstrap class) 框中。

<table border=1>
    <thead>
        <tr>
            <th> ID</th>
            <th>Title</th>
            <th>Username</th>
            <th>Contents</th>
            <th>IP Address</th>
            <th>CreateDate</th>

            <th>TopicID</th>


        </tr>
    </thead>

    <tbody>

        <c:forEach items="${messages}" var="message">

            <tr>

                <td><c:out value="${message.id}" /></td>
                <td><c:out value="${message.title}" /></td>
                <td><c:out value="${message.username}" /></td>
                <td><c:out value="${message.contents}" /></td>
                <td><c:out value="${message.ip}" /></td>
                <td><c:out value="${message.createTime}" /></td>

                <td><c:out value="${message.topicid}" /></td>
                <!-- <td><a href="topicServlet?action=view">View</a></td>
                <td><a href="topicServlet?action=delete&topicId=<c:out value="${message.id}"/>">Delete</a></td>  -->

            </tr>

        </c:forEach>


    </tbody>
</table>

用 div class= jumbotron 替换每个 tr 标签,并在每个 >/tr> 的末尾添加 br 标签。 它将在单独的 jumbotron 行中显示每个记录集。