You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Denis Wang <dw...@brandmuscle.com> on 2003/01/08 22:23:50 UTC
and Pager taglib from jsptags.com --Help!
Hello, All,
I use Struts to retrieve a long list of data. It works perfectly. I want
to enhance it with pager functionality and got the pager taglib from
jsptags.com. The installation is a success. Then I modified my JSP page to
accomodate the new functionality. ( No touch on Action, Form, or DAO)
The search result page http://ABCD.do successfully displays first 10 items.
However, when I tried to navigate to other pages by clicking on the
automatic generated hyperlink of http://ABCD.jsp?pager.offset=1. I will get
errors like "javax.servlet.jsp.JspException: Cannot retrieve mapping for
action ABCD".
Does anybody have any ideas?
Thanks a lot.
Denis
p.s. Excerpt code from the modified JSP page:
<pg:pages>
<a href="<%= pageUrl %>"><%= pageNumber %></a>
</pg:pages>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: and Pager taglib from jsptags.com --Help!
Posted by Robert Taylor <rt...@mulework.com>.
Try this:
<pager url="/ABCD.do">
</pager>
I'm assuming you don't have it set and the default behavior populates that
attribute value with request.getRequestURI(). The url attribute value is
used by the other tags in the tld to generate
the appropriate url.
robert
> -----Original Message-----
> From: Denis Wang [mailto:dwang@brandmuscle.com]
> Sent: Wednesday, January 08, 2003 4:24 PM
> To: Struts Users Mailing List
> Subject: <logic:iterate> and Pager taglib from jsptags.com --Help!
>
>
> Hello, All,
> I use Struts to retrieve a long list of data. It works perfectly. I want
> to enhance it with pager functionality and got the pager taglib from
> jsptags.com. The installation is a success. Then I modified my
> JSP page to
> accomodate the new functionality. ( No touch on Action, Form, or DAO)
>
> The search result page http://ABCD.do successfully displays first
> 10 items.
> However, when I tried to navigate to other pages by clicking on the
> automatic generated hyperlink of http://ABCD.jsp?pager.offset=1.
> I will get
> errors like "javax.servlet.jsp.JspException: Cannot retrieve mapping for
> action ABCD".
>
> Does anybody have any ideas?
> Thanks a lot.
> Denis
>
>
> p.s. Excerpt code from the modified JSP page:
> <pg:pages>
> <a href="<%= pageUrl %>"><%= pageNumber %></a>
> </pg:pages>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>