Is there a way to print the url hitting Tomcat. Are there any configuraton changes that I can set up in Tomcat so that I can do this?? [ March 25, 2007: Message edited by: Jothi Shankar Kumar Sankararaj ]
If you are talking of the local URL that is being accessed, then that is being logged on the access log in the TOMCAT_HOME/logs file.
If you are talking of the REFERER header, then you could write a filter that is mapped to all requests which reads that from the request and logs it to System.out. That would also work for logging the local URL.
Ping & DNS - updated with new look and Ping home screen widget
In tomcat/conf/server.xml there is an entry for a access-logging valve. It is commented out by default. If you uncomment it, it will log all access to tomcat in the standard logging format, recognized by Webalizer and the other popular log analyzing tools.
Depending on how you've installed and started Tomcat, stdout will either go to one of the log files under tomcat/logs or to the console. There are free programs out there that will allow you to watch any log, in real time, just like the console.
In Unix the "tail -f" command will do this. I've seen various free "tail" programs for windows. Textpad also allows you to do this.