Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pagination and jsp tags  RSS feed

Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok where to start.

I have completely implemented paging on my site with the pager tag library.

This worked beautiful until.....

The person who i am doing the site for wanted friendly urls. I have apache running in front of tomcat.

in apache cp_jkmount.conf i added
JkMount /products/* ajp13

I am using a rewrite rule to make my urls more friendly.

RewriteRule ^(.*)products/(.*)/(.*)$ $1/products?BRAND=$2&VENDORCODE=$3 [PT,L]

which changes this:
to this:

for the original links:
When i go to the page links the pager creates the urls turn this:

to this when you click on the page numbers:

However these links are now broken and the paging doesnt work?

I am at a crossroad now to try to fix this or to write the paging from scratch but i dont know how intailed that would be. I read on the FAQ here that you can use the LIMIT in mysql to assist with the paging but would i be in the same boat if i were to do it that way? and how hard would that be to implement.

Just looking for some direction.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!