Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Pager Tag Library & JSLT

843838Aug 2 2006
Hi

I try to incorporate paging in my web application and I find Pager Tag Library in http://jsptags.com/tags/navigation/pager/index.jsp.

Here is my code

...
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>


<%-- Retrieve data--%>
<sql:query var="date_data" dataSource="${ds}">
    select *
    from pdate
</sql:query>

....
...


<html>


......

<pg:pager maxPageItems="2">

    <pg:item>

        <c:forEach items="${date_data.rows}" var="row">
            <c:out value="${row.product}"/>
        </c:forEach>


    </pg:item>

    <pg:index>

    <pg:first>
      <a href="<%= pageUrl %>">[ (<%= pageNumber %>) |< Previous ]</a>
    </pg:first>

    <pg:prev>
      <a href="<%= pageUrl %>">[ (<%= pageNumber %>) << Previous ]</a>
    </pg:prev>

    <pg:pages>
       <a href="<%= pageUrl %>"><%= pageNumber %></a> 
    </pg:pages>

    <pg:next>
      <a href="<%= pageUrl %>">[ Next >> (<%= pageNumber %>) ]</a>
    </pg:next>

    <pg:last>
      <a href="<%= pageUrl %>">[ Last >| (<%= pageNumber %>) ]</a>
    </pg:last>

  </pg:index>
</pg:pager>
I don�t understand what values the pageUrl expression must have.
I change all <%= pageUrl %> with numbers and string in order to experiment but the result is just the <c:out value="${row.product}"/> and no paging.

What should be done in order to work?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2006
Added on Aug 2 2006
0 comments
198 views