I am trying to use the paging provide by
http://jsptags.com/tags/navigation/pager

I got an error: This absolute uri
(http://jsptags.com/tags/navigation/pager) cannot be
resolved in either web.xml or the jar files deployed
with this application'

What uri string does the pager expect?  What should I
put in the web.xml to use this pager?  
I set  url="org/myOrg/myProj/message/ListThreads"
and ListThreads.java is an action servlet that
retrieves a list to be displayed from the database.

What I did is:

1. in the beginning of my JSP, there is:
[code]
<%@ taglib
uri="http://jsptags.com/tags/navigation/pager";
prefix="pg" %>
[/code]

2. I have this segment of code in my JSP
[code]
<pg:pager
  url="org/myOrg/myProj/message/ListThreads"
  items="<c:out value="${totalThreads}" />"
  maxPageItems="20"
  isOffset="true"
  export="offset,currentPageNumber=pageNumber"
  scope="request">
<% String rowsType = "Number of Threads"; %>
<%-- keep track of preference --%>
<pg:param name="sort"/>
<pg:param name="order"/>
[/code]

where "totalThreads", "sort", "order" are defined this
way (the code has no problem if I do not use the
paging):
[code]
<c:set var="totalThreads"
value="${requestScope.TotalThreads}" />

   <html:form action="/message/ListThreads">
   Sort by
      <html:select size="1" property="sort"
value="thread_last_post_date"
onchange="document.forms[4].elements[2].focus()">
      <html:options collection="SORT" property="value"
labelProperty="label"/>
      </html:select>
   Order
      <html:select size="1" property="order"
value="DESC"
onchange="document.forms[5].elements[2].focus()">
      <html:options collection="ORDER"
property="value" labelProperty="label"/>
      </html:select>
   <input type="button" value="Go"
onclick="disabled=true; submit();">
   </html:form>
[/code]




                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to