Hi,
I want to track the users' requesting a static resource from my application. For example, I would like to track(log) when the user downloads an mp3 song(for example). Now for this, I wrote some code in my already existing filter. Everything works fine,when the user clicks an mp3 song(static resource, it does not goto my
servlet), the code in my filter is getting executed and the user is presented a download/save page. But the problem arises when the user clicks "cancel" button instead of saving the song. When he does this, at the server I get this exception java.net.SocketException: Connection reset by peer: socket write error. I understand that when the user clicks "cancel", the response is somewhat in an incomplete state right???
Prior to this , The DefaultServlet was serving my static resources. Now when I changed my web.xml to make all the request(including static) to pass through my filter, I get this problem.
What am I missing here, how do I know if the user has requested a static resource or a servlet request? The above design was working fine but for the problem described? Any help?
Thanx
shankar.