All files are send with MIME type, the question is what is it.
There does not have to be a form:
<a href="server.script?file=mySong.mp3">Download mySong.mp3</a>
// Increment the counter
// redirect to GET['file']
I do not know jsp so I can not help you with implementation, but I do know this approach works just fine with ASP and PHP - it does not matter what server side language is - you are relying on HTTP protocol for redirection.