在JSP分页中需要帮助

I have following ajax code:

function handleServerResponse() {
        alert(xmlhttp.readyState);
        if (xmlhttp.readyState == 4) {
            alert(xmlhttp.status);
            if (xmlhttp.status == 200) {
                var jason = eval('(' + xmlhttp.responseText + ')');
                for ( var index = 0; index <= jason.length; index++) {
    document.getElementById('product-data').innerHTML += jason[index].productNumber
                    + jason[index].productType
                    + jason[index].funcDesignation + "<br>";
                }
            }

In my jsp I display the data with the following code:

<td>
<a href="<portlet:renderURL><portlet:param name='pageAction' value='Navigation'/></portlet:renderURL>">                     <div><span id="product-data"></span></div>          
</a>
</td>

I want to implement pagination in this code. Please guide with the simplest way possible. I have gone through few tag libraries available but don't know how it will fit in my logic.

查看全部
weixin_33749242
weixin_33749242
2011/06/22 05:34
  • pagination
  • jsp
  • ajax
  • javascript
  • 点赞
  • 收藏
  • 回答
    私信

1个回复