counts the number of hit on a website containing many JSPs



Hi All,

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
.



Relevant Pages

  • Re: counts the number of hit on a website containing many JSPs
    ... I am having a scenario in which I am having a full public website, ... and if i hit on http://www.abc.com/xyz2.jsp then count should become 2 ... 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, look at the session and figure out if this is a new user. ...
    (comp.lang.java.programmer)
  • Re: counts the number of hit on a website containing many JSPs
    ... I am having a scenario in which I am having a full public website, ... which won't require any login. ... and if i hit on http://www.abc.com/xyz2.jsp then count should become 2 ...
    (comp.lang.java.programmer)
  • Web site Admin problem in IIS console
    ... I have a public website on an sbs2003 machine which still works buy I can ... If I right click on the website name in IIS admin and go to 'Recalcualte ... or error untill I hit Stop on the IE tool Bar. ...
    (microsoft.public.windows.server.sbs)
  • Re: MOTORISTS who smoke at the wheel are to be targeted
    ... If you can comfortably deal with that scenario safely then ... You approach a bend at a speed that allows you to stop in the distance ... he could hit me head on since my stopping distance is greatly ... with the original scenario and the size of the time window where you ...
    (uk.rec.driving)
  • Re: Normal driving might not land you in jail
    ... Because your scenario involves choosing to do something that is wrong, ... As you get near the door a bloke takes a wild swing at you and you hit him ... Possible offensive weapon. ... Assault charge or ABH. ...
    (uk.legal)