about config of tomcat for counting hits of index page
posted 14 years ago
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
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.
An IDE is no substitute for an Intelligent Developer.