On 08/04/2014 11:26 AM, André Warnier wrote:
Patcharee Thongtra wrote:
Hi,

Is it possible to have Tomcat do some custom actions after a specific page/file is accessed/downloaded? If so, how to?
Any suggestions are appreciated.


What kind of "custom actions", for what kind of pages/files ?

What prevents you from doing such "custom actions" in your own webapp/servlet, or in a servlet filter, after you have returned the response to the client ?


Actually I set my web app as directory listing and I would like to keep logs after users finish download files. I do not know how to do that in my web app. Any ideas?

Then I found tomcat is aware of downloading file done (logged in access log), so I though maybe I can make Tomcat activate my servlet after the downloaded and the servlet logs the download activity.

Patcharee

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to