aspose file tools*
The moose likes Servlets and the fly likes retreiving the URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "retreiving the URL" Watch "retreiving the URL" New topic
Author

retreiving the URL

sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
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
Idly Vada
Ranch Hand

Joined: Sep 02, 2003
Posts: 135
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.
Balan Raj
Ranch Hand

Joined: Aug 26, 2003
Posts: 74
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: retreiving the URL