This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 969
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
jQuery in Action, 3rd edition