Java datatables重新绘制或刷新表

Java datatables重新绘制或刷新表,java,javascript,jquery,ajax,jsp,Java,Javascript,Jquery,Ajax,Jsp,我有一个表,它是服务器端的字段 <table class="table table-bordered table-hover" id="eStudent-data-table"> <thead> <tr> <th>Name</th> <th>Age</th> <th>Gender</th> <th

我有一个表,它是服务器端的字段

<table class="table table-bordered table-hover" id="eStudent-data-table">
    <thead>
        <tr>
        <th>Name</th>
        <th>Age</th>
        <th>Gender</th>
        <th>Religion</th>
        <th>Knowledge Level</th>
        </tr>
    </thead>
    <tbody>
        <c:forEach var="studentInfo" items="${ studentInfo }">
        <c:if test="${ studentInfo.graduate eq false }">
        <tr>
            <td><a href="#" class="profiler">${ studentInfo.name }</a></td>
            <td>${ studentInfo.age }</td>
            <td>${ studentInfo.gender }</td>
            <td>${ studentInfo.religion }</td>
            <td>${ studentInfo.knowledgeLevel }</td>
        </tr>
        </c:if>
        </c:forEach>
    </tbody>
</table>
另一个更新:

为了更清楚地说明这段代码,我使用的代码包含我正在编辑的字段,这些字段将反映到数据库中,该数据库与DataTables的数据源相同。下面是显示模态的代码段

$('.profiler').on( 'click', function() {
    ... // some code to fill the field in the modal
    $modal.modal(); // show modal to the view
});

服务器语言是无关的,浏览器只知道提供的数据。不清楚您是如何编辑值的,您可以使用插件API直接修改插件为每一行存储的数据。需要更多的javascript代码和更好的解释workflow@charlietfl谢谢你的快速回复。我更新了我的问题。您可以假设我正在使用一个简单的ajax来编辑表中的字段,但我在问题中发布了一个更详细的信息,以防您需要详细信息。好的……您不必重新加载,而是希望通过API更新该行的数据。请看
插件的示例。可以帮助集成
x-editable
,但需要查看更多代码才能了解此
的内容is@Nouphal.M如何准确地将数据添加到表中?以什么形式?
$('.profiler').on( 'click', function() {
    ... // some code to fill the field in the modal
    $modal.modal(); // show modal to the view
});