asked in JSP by (58.6k points)

1 Answer

To implement a hit counter you can make use of Application Implicit object and associated methods getAttribute() and setAttribute().

This object is a representation of the JSP page through its entire lifecycle. This object is created when the JSP page is initialized and will be removed when the JSP page is removed by the jspDestroy() method.
answered by (58.6k points)

Java Interview Questions and Answers 2018