Javascript 条纹:在jsp页面中html表格分页
我使用的是java框架。我有一个jsp页面:Javascript 条纹:在jsp页面中html表格分页,javascript,jquery,ajax,jsp,stripes,Javascript,Jquery,Ajax,Jsp,Stripes,我使用的是java框架。我有一个jsp页面: <table id="mlTable" style=""> <col width="200"> <col width="250"> <thead> <tr> <th align="center"><p>Name</p></th> <th align="center"
<table id="mlTable" style="">
<col width="200">
<col width="250">
<thead>
<tr>
<th align="center"><p>Name</p></th>
<th align="center"><p>Address</p></th>
</tr>
</thead>
<c:forEach items="${actionBean.mLocations}" var="ml">
<tr>
<td><p>${ml.name}</p></td>
<td><p>${ml.address}</p></td>
</tr>
</c:forEach>
</table>
名字
地址
${ml.name}
${ml.address}
在我的actionbean中,我将返回以下列表:
public List<Location> getmLocations() {
mLocations = wrapperBean.getLocations();
return mLocations;
}
public List getmLocations(){
mLocations=wrapperBean.getLocations();
返回位置;
}
我想要的是分页,因为列表很长。并且分页必须是异步的,无需重新加载页面。因为我也有搜索字段,那个值必须留在字段中。我不想使用DISPLAYTAG,因为我正在向表中添加一些自定义类。我能做什么?请提供帮助您可以使用Javascript库(如)在客户端为HTML表分页。这样可以避免刷新页面,但如果数据量确实惊人,则可能会导致性能问题,因为您总是下载整个内容(但每次加载页面时仅下载一次)