<% synchronized(counter) { int mycount = 0; if(counter.get("pageone") != null) { mycount = ((Integer)counter.get("pageone")).intValue(); } mycount++; counter.put("pageone", new Integer(mycount)); } %> I am page one !
Counters: