File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Count number of downloads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Count number of downloads" Watch "Count number of downloads" New topic

Count number of downloads

Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 169
Have a link on web page that enableds user to download a file.

How to log number of downloads ?

Can be done by implementing Filter. Is this ok, or is there any better way.

Searchable nature photo gallery:
Ivan Jozsef Balazs

Joined: May 22, 2012
Posts: 970
Is its a dynamic (e.g. servlet, jsp) or a static resource?

Anyway, perusing access logs can also be useful.

I agree. Here's the link:
subject: Count number of downloads
It's not a secret anymore!