aspose file tools*
The moose likes Servlets and the fly likes A few questions on web statistics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "A few questions on web statistics" Watch "A few questions on web statistics" New topic
Author

A few questions on web statistics

Adam Asham
Greenhorn

Joined: Jul 06, 2006
Posts: 13
Hello fellow Java developers!

I am writing my own browser statistics web application but I have a bunch questions that keeps me from moving on to the actual coding. Please bear with me!

How does one deal with the fact that IE sends different HTTP header values after a page refresh? (http accept)
One way could be to create a session for that group and store the headers -in there - do you see any problems by doing this?

How to know if Javascript is enabled without having to resort to something similar to 1px-sized images?
Would it be terribly inefficient to have the filter inserting whatever it can read from the http headers into the database and then having the destination url reporting back (through a <script>-tag perhaps?) screen width and height, color depth? That way I can tell for sure that if javascript is enabled or not, but how'd I do this the best way? I am not high on manually adding <script>-tags on every page! I've worked with IIS(Microsoft) in the past and there's this thing called ISAPI that enables you to parse/modify requests before they are handled by the server, is there an equivalent for Java? I will be using Resin for production but I'm developing on Tomcat. Should this be done at the application server level instead by reading the server logs but I can't tell whether js is enabled that way can I?


Thanks a bunch!
Adam Asham
Greenhorn

Joined: Jul 06, 2006
Posts: 13
I think I got the ISAPI-thing worked out now - I will be using an output filter.

However I would still appreciate feedback from people with experience for the remaining questions; I am not asking for code.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: A few questions on web statistics