You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by brian jf <br...@hotmail.com> on 2003/04/21 00:38:04 UTC

Pager taglib problems

Hi all,
I'm using the jsptags.com pager taglib in my first struts application and 
I've come into a problem. I know lots of people using struts have used the 
pager taglib so perhaps someone can help me.

My problem is as follows:

I want the pager iteration to happen on a jsp called categories.jsp. However 
this jsp has to preload some stuff in an action named categories.do, which 
then forwards to categories.jsp. However when using the pager taglib, it is 
normal to make use of a variable named pageUrl. For example the following 
snip of code would output all the page numbers, like you would see in 
google, and link to each one.

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

pageUrl is created based on the current url.
Unfortunately the href that pageUrl is mapped to comes out as

href://myhost/categories.jsp?offset=(correctOffsetValue)

whereas I would like it to come out as:

href://myhost/categories.do?param1=someVal&offset=(correctOffsetValue)

note that offset is a variable that has been created as part of the pageUrl 
variable.

Perhaps someone has experienced this problem before. I sure hope so :-)

thanks,
Brian




_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org