Keep track of pages visited

Hi

How do I get keep track of the jsp pages being visited between when someone logs into an application and

logs out.Do I have to write something at very page to track this

Would I able to persist this information into the database and retrieve this later

Thanks

Arn

[324 byte] By [arnoldfire] at [2007-9-26 3:08:49]
# 1

> Hi

>

> How do I get keep track of the jsp pages being visited

> between when someone logs into an application and

> logs out.Do I have to write something at very page to

> track this

> Would I able to persist this information into the

> database and retrieve this later

>

> Thanks

> Arn

Sure, you could create a session bean that would take the request.getContextPath() as a value to an Enumeration of pages variable. Just implement the HttpSessionBindingListener and overload the valueUnbound() function (event invoked when session is being destroyed) to save all the information contained in the vector to your database.

Hope that helps,

Bryan

bryanwclark at 2007-6-29 11:13:59 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...