i am developing one web application, here one sever and three clients, my project guide told me to count no hits from a client on that day. how can i achive that? jsp.html and tomcat server 5.0 thes thinks i am using \ [ January 30, 2007: Message edited by: Paul ]
There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Originally posted by Paul: i am developing one web application, here one sever and three clients, my project guide told me to count no hits from a client on that day. how can i achive that? jsp.html and tomcat server 5.0 thes thinks i am using \
[ January 30, 2007: Message edited by: Paul ]
ok thanks for your advice i changed what you suggest!
Abdulla Mamuwala
Ranch Hand
Joined: Jan 09, 2004
Posts: 225
posted
0
hey anil, could you use JSP or some kind of scripting because using only HTML you cannot do the math, that is increment the count. You need some kind of mechnism to increment the counter and at the same time hold the previous value of the count.
Stefan Evans
Bartender
Joined: Jul 06, 2005
Posts: 1004
posted
0
Well at what level do you need to track? Just how many hits on the site, or do you need a page breakdown/analysis as well?
You need to be able to distinguish between the clients. If they have to log in to your application, you're sorted - you can track it via login name. A stored cookie could also identify a client (as long as the user doesn't mind cookies) If not, you might have to resort to something like IP address - request.getRemoteHost()?
Probably the best way to track this is via a ServletFilter that would execute on every request, and track who requested what.