I am the author of the open source JAMon (Java application monitor). Is a place for tomcat users to place useful code such as servlet filters? Also, is this email list the only place to ask such questions? Doesn't tomcat have a user forum?
JAMon comes with a servlet filter that monitors access to server resources including Servlets, JSP's, GIFs, JPeg's, and HTML documents. The JAMon filter is a powerful web site hit counter. Statistics for pages will be gathered such as hits, and execution time (avg, min, max). In addition you can see which pages are currently executing. The JAMon servlet filter does not require ANY code changes. You simply put JAMon.jar in your servers classpath, and change your web.xml file, and install the JAMon war so you can view your statistics. Note you can choose what types of pages you would like to monitor by altering the 'url-pattern' element below. Here is a live demo of the jamon servlet filter. Click on "JAMon Stats" to see the results. Note the latest version of jamon has an improved stats viewer that i hope to post soon. http://www.ssouza.com/fdsapi Jamon does a lot more than this too. You can read more at http://www.jamonapi.com