Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A few questions on web statistics

 
Adam Asham
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic