Meaningless Drivel is fun!
The moose likes Servlets and the fly likes How to track visited/unvisited pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to track visited/unvisited pages" Watch "How to track visited/unvisited pages" New topic

How to track visited/unvisited pages

Sven Anderson
Ranch Hand

Joined: Apr 14, 2004
Posts: 58
Hi all,

I'm currently looking at technical solutions for a system that will present a number of training-courses to various
employees. The courses itself are currently written in standard HTML and are independent of each other. When a user login
they will be given a set of courses they signed up for.
One of the requirements and the one I'm having problem with is finding a technical solution to how to implement a
feature such as when an user logon to the system all pages will be marked as unvisited. As you click on each page
the unvisit flag disapear. It is also possible that new content will be added to a particular course and this should
also be reflected in terms of an unvist flag next time the user login. I'm planning to implement the system using Tomcat, servlets
and JSP's, probably with a back-end database to store user info etc.

If anyone could talk me through on a possible technical high level solution that would be much appreciated.

We are actually thinking of turning all the html pages into xml and then using XSLT to generate the output. I don't have a clue
how we would implement this feature in that case.

Also the system should coup with at least 200 users concurrently accessing the course material (I guess you have to take that in
consideration if you planning of generating html on-the-fly through XSLT).

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

"unvisit flag" ?

If you are talking about the links changing colors after they are visited, that can easily be controlled with CSS.

[Asking smart questions] [About Bear] [Books by Bear]
Sven Anderson
Ranch Hand

Joined: Apr 14, 2004
Posts: 58

A visited/unvisited flag would probably be illustrated in form of a symbol in front of the page. Given the assumption there is a navigation tree displaying the structure of the course. I believe visited pages need to be tracked in a database or some other form of persistent storage (xml maybe). The system owner actually wants to have some control over what the users have looked at and not looked at.

I agree. Here's the link:
subject: How to track visited/unvisited pages
jQuery in Action, 3rd edition