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 about config of tomcat for counting hits of index page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "about config of tomcat for counting hits of index page" Watch "about config of tomcat for counting hits of index page" New topic
Author

about config of tomcat for counting hits of index page

Kapil Keskar
Ranch Hand

Joined: Dec 04, 2001
Posts: 47
Hello guys,
I have to count the hits of Pages of index page.
So is there any facililty that i can have opening page "index.jsp" to count the hits in tomcat server.
I think it's more on admin part which i have to set it during configuration.
Can any body tell me about how to go for this on local server & also on server side where i don't have sufficient priviledge on site.
Thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

If you just need to know how many times the index page is being accessed for admin purposes, the easiest thing to do is monitor the server's access logs. This can be as complex as using a log analysis program or as simple as doing a "grep -c index.html /var/log/httpd/access_log*" (under Linux)
If you're looking for a "Hit Counter" to display on the page, I think your favourite web search engine can probably turn one up.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: about config of tomcat for counting hits of index page
 
Similar Threads
session count
how to count no of hits from a particular client?
404 Error
how we can count no.of hits on a JSP page?
Error Page Not Found