Just make some sort of index Servlet that does the counting, then redirect to the index.html page
Or even better: always use the welcome servlet the requested page, so you can also count reloads.
What you basicly have to do is thus making the servlet the index page ...
BTW, I think you've got something wrong about JSP ... Actually JSPs and servlets are exeactly the same when executed ... The JSP/Servlet engine first transforms a JSP into a servlet, compiles it and then uses it ... or I just misunderstood your line about the jsp and the image ...
Regards,
G�nther
http://www.javacoding.net