Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 条纹:在jsp页面中html表格分页_Javascript_Jquery_Ajax_Jsp_Stripes - Fatal编程技术网

Javascript 条纹:在jsp页面中html表格分页

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"

我使用的是java框架。我有一个jsp页面:

<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表分页。这样可以避免刷新页面,但如果数据量确实惊人,则可能会导致性能问题,因为您总是下载整个内容(但每次加载页面时仅下载一次)