Hi every1,
Can you help me, Im trying to make a hit counter with JSP, But i want to read/write it to a file, so I dont loose the variable, can you please show mw the code to that, if you know.
Thank you

A hit counter is many times best done with a filter. Go to java.sun.com and
look at the j2ee tutorial. It is long and you will have to search for the counter
examples, but they are there. And remember, that even if the filter example
is shown for a servlet, it will also work for a jsp, as a jsp is really nothing other
than a servlet that is compiled by the app server rather than being precompiled.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.