Re: counts the number of hit on a website containing many JSPs
- From: Abhijat Vatsyayan <abhijat01@xxxxxxxxxxxxx>
- Date: Mon, 30 Jun 2008 16:47:13 -0400
Garg wrote:
Hi All,If you are willing to create a session for all users irrespective of which URL they access, filters might help you. You can use a filter to intercept all requests (or only the ones you want included in the count), look at the session and figure out if this is a new user.
I am having a scenario in which I am having a full public website,
which won't require any login. I want to count the number of hits to
that website.
like :
1.
count = 0
if i hit http://www.abc.com/xyz1.jsp then count should become 1
and if i hit on http://www.abc.com/xyz2.jsp then count should become 2
(I am writing these urls in the address bar and clicking enter)
2.
count=0
if I hit http://www.abc.com/xyz1.jsp then count should become 1 and
then if I navigate to http://www.abc.com/xyz2.jsp by clicking any
hyper link on xyz1.jsp file the count should remain 1
I this i don't want to put the code in every JSP. I need a common
place.
So please tell me where I should put my code and variable count.
Thanks in advance,
Tarun
.
- References:
- Prev by Date: Re: Google Map Java Error?
- Previous by thread: Re: counts the number of hit on a website containing many JSPs
- Next by thread: JTextPane and EditorKit
- Index(es):
Relevant Pages
|