web servers often have a way to do this automatically - check your docs. if you want to code it yourself, then somewhere in your
jsp page you will need to update a counter. you could use a text file that just has a number in it: open the file, read the number, increment it, write it back to the file. or, you could log an entry with more details: open the file, append a line with the time of access, ip address, etc., whatever other info you want to track. then number of hits is count of lines in the file. or you could put the information into a database if you have one set up. those are some starter ideas - it's a pretty open concept and others may have better ideas for implementation.