permaculture playing cards
The moose likes JSP and the fly likes count of  hits to a  particuler webpage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "count of  hits to a  particuler webpage" Watch "count of  hits to a  particuler webpage" New topic

count of hits to a particuler webpage

swapnil vedpathak

Joined: Mar 15, 2006
Posts: 8
I want to find out no. of visits given by various users to my web page ...

Thanks in advance
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Defining number of hits is probably the hardest part of your task.

Do you mean, number of unique visitors to the site as a whole, number of HTTP requests made to your site, number of visits to each page?

For me, the best way to do this is to turn access logging on and occasionally run the logs through one of the many web traffic analyzers like Webalizer.
This technique will give you an amazing amount of detail in easy to read graphs, and pie charts as well as give you top 10 type statistics for thinks like 404 errors, user location, referer (referrer) information, etc..

If that's not what you're looking for, describe, in a little more detail, what you do want and let's see if someone can steer you in the right direction.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585

Use Filters ...

Best of luck ...

Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
I agree. Here's the link:
subject: count of hits to a particuler webpage
It's not a secret anymore!