I have an a applicaiton developed in struts having ten pages and users will open any of these ten pages there is no login required, user can open either first or last depends on his requirement. I want to count number of user hits to this application.
where can place counting logic for this applicaiton, can any one give me any clue.
If I will use more than one filter where can I do count for single filter we can count in init() as you mentioned, but I want to count globally, can any one give any suggestions.
Teresa Lee wrote:use plugin and do the count logic in the init() and destroy() method or you can write a java class to implements ServletContextListener.
In Struts 1 there's only one action created per action mapping, so init() and destroy() will almost never be called.
It could also be handled in a request processor extension.