• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic Tracking Links  RSS feed

 
Michael Hoang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone give me an idea on how to implement dynamic tracking links on a page showing where you've been the last X pages?

For example: page 1 >> page 2 >> page 3 >> page 4 >> ...
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a queue into which you put the current URI. Make it x long and the queue should drop older items as it grows.
Having an abstract base for your servlets which handles this for you is the best way to guarantee it's implemented globally.
Then simply iterate over the queue (without deleting items) and display the results.
An included JSP fragment will handle that consistently for all pages.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!