File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 16246
    
  21

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