我的数据表有效,但是当我单击表的另一个页面时,它会将页面重定向到不存在的“未定义”页面。当我单击一个页码时,它会简要显示正确的结果,但随后它会被重定向到“未定义”页面。
查询
$('#branchtables').DataTable( {
"pagingType": "full_numbers",
"paging": true,
} );
Run Code Online (Sandbox Code Playgroud)
HTML
<table id = "branchtables" class="table table-borderless table-data3">
<thead>
<tr>
<th>Partner ID</th>
<th>Partner Name</th>
<th>Mobile Number</th>
<th>Parent DSP</th>
</tr>
</thead>
<tbody>
<core:forEach var="data" items="${partners}" varStatus="count" >
<tr id="removetable">
<core:choose>
<core:when test = "${data.parentid eq PID}">
<td id="removetable" class="tablefonts mytablewidth"><a href="managebranches?pid=${data.branchid}">${data.branchid}</a></td>
</core:when>
<core:otherwise>
<td id="removetable" class="tablefonts mytablewidth">${data.branchid}</td>
</core:otherwise>
</core:choose>
<td id="removetable" class="tablefonts mytablewidth">${data.branchname}</td>
<td id="removetable" class="tablefonts mytablewidth">${data.email}</td>
<td id="removetable" class="tablefonts mytablewidth">${data.parentpartner}</td>
</tr>
</core:forEach>
</tbody>
</table>
Run Code Online (Sandbox Code Playgroud)
数据表链接
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.15/css/jquery.dataTables.min.css"/>
<script …Run Code Online (Sandbox Code Playgroud)