This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes sample code to display last 10 visited pages by user in the application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "sample code to display last 10 visited pages by user in the application " Watch "sample code to display last 10 visited pages by user in the application " New topic
Author

sample code to display last 10 visited pages by user in the application

arjun Pal reddy
Greenhorn

Joined: Apr 30, 2011
Posts: 3
I need to show last 10 user visited pages along with time of visit under recent activity section on my home page. All the pages are JSP's with the use of javascript and Jquery. I found some related examples based on PHP but my need is using the above technologies. Someone suggested use of cookies,sessions, local-storage,history etc. Please someone share some example code on how to do this. Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63202
    
  69

Use a filter and store the info in the session.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: sample code to display last 10 visited pages by user in the application
 
It's not a secret anymore!