Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

retreiving the URL  RSS feed

 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

whenever an user logs on .how to kepp track of the pages he visited in that application ie i need to keep track of the recently visited URLs.can u help me in this regard
 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by sreenath reddy:
whenever an user logs on .how to kepp track of the pages he visited in that application ie i need to keep track of the recently visited URLs.can u help me in this regard


Everytime the user logs in, get the user info from cookies(or session IDs) and store user info along with requested page in a database of recently visited urls.
You can also store all urls in cookies and send it to client.
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest using an Entry *Filter* to achieve this since
1. The logging can be directed to wherever you want it to be (file/ db)
2. You can selectively log certain JSPs only
3. You can stop the logging at any time you want it by turning it off in web.xml
In you web.xml, define the filter like
<filter>
<filter-name>EntryFilter</filter-name>
<description></description>
<filter-class>filters.EntryFilter</filter-class>
</filter>
and in the EntryFilter's doFilter method, add the code to perform the logging.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!