我正在使用会话数据创建表。因此,如果我使用任何 ajax 调用,如何将新的会话数据分配给表。在请求中,它包含会话数据以及其他会话以及结果。
<table>
<thead>
<tr>
<th>S.no</th>
<th>Leave Type</th>
<th>Eligible Leaves</th>
<th>Available Leaves</th>
</tr>
</thead>
<tbody>
<c:choose>
<c:when test="${empty empLeaveTypeSummary}">
<tr>
<td colspan="4">No Data to display</td>
</tr>
</c:when>
<c:otherwise>
<c:forEach var="lst" items="${empLeaveTypeSummary}"varStatus="loop">
<tr id="tsRow${loop.index + 1}">
<td>
<c:out value="${loop.index + 1}" />
</td>
<td>
<c:out value="${lst.leaveTypeName}" />
</td>
<td>
<c:out value="${lst.leaveEligibility}" />
</td>
<td>
<c:out value="${lst.leaveBalance}" />
</td>
</tr>
</c:forEach>
</c:otherwise>
</c:choose>
</tbody>
</table>
有什么方法可以刷新表/会话变量