Click to See Complete Forum and Search --> : Get number of hits


thisObject
05-11-2006, 03:24 AM
Hello,
I was wondering if anybody know how to have counter feature that will be visible only to administrator.

I need to see how many hits my site gets over some period of time.

Can this be done in Java?
OS: Fedora Core 5

Thanks.

sridhar_423
05-11-2006, 03:44 AM
write a jsp page with scope as application. set a static variable in that page.
and if the session is new, then increment the variable.

this value will be equal to the number of visits to your site until unless your server gets restarted.