I have an Download link in a jsp. My requirement is whenever user clicks on download link, before providing the download data,i have to track the no of hits.
We are having a 3rd party page tracking, which returns a 1*1 pixel image after tracking is done.
what i am doing is, i am forwarding the user to some redirection.jsp .
In that redirection.jsp, i am calling the 1*1 pixel image tag(3rd party page tracking by loading an image), after that i am redirecting the user to actual download link.
But what happening now is, request is redirecting before the 3rd party page tracking image is loaded.
Try to use filters & keep track of count .
In filter set the count in context attribute so that you can that count from any page or servlet in application.
let me know if you have any quires.
No, tomorrow we rule the world! With this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss