Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
Author

count of hits to a particuler webpage

swapnil vedpathak
Greenhorn

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
Sheriff

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
Hi,

Use Filters ...

Best of luck ...


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
 
Consider Paul's rocket mass heater.
 
subject: count of hits to a particuler webpage