CrazyEngineers
  • How to find the number of hits on button in a web page using JSP?

    Nikumbh

    Nikumbh

    @nikumbh-lmTCgS
    Updated: Oct 26, 2024
    Views: 1.1K
    how to find the no. of hits on button in a web page using jsp. The no. of hits has to be started with the last hit that has been made by the user. Could anyone please help. Well, Thanks in advance.
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Anoop Kumar

    MemberJun 18, 2013

    Look like you need to use application implicit object. which is object of ServletContext ,
    here is simple tutorial given for page counter, looks ok and should work.
    <a href="https://www.tutorialspoint.com/jsp/jsp_hits_counter.htm" target="_blank" rel="nofollow noopener noreferrer">JSP - Hits Counter</a>

    Do you want to use across session? then you need to save counter in database before session end.
    Are you sure? This action cannot be undone.
    Cancel
  • Nikumbh

    MemberJun 20, 2013

    #-Link-Snipped-# : Thank you buddy. Well got the idea what i'am looking for...
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register