-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 8/28/12 3:18 AM, rathinasamy....@snovabits.net wrote:
> Thank you very much André Warnier for your time.
> 
> Here I would like to use default webapp/servlet.

- From reading many many posts to this list, modifying the file system
out from under the DefaultServlet tends to cause all kinds of chaos.
You are going to be creating new files (which may lead to 404s if the
DefaultServlet thinks they don't exist) and removing files (which may
invalidate DefaultServlet's cache).

I would highly recommend that you write your own servlet that does
everything, here.

> - add a filter to the default webapp, so that before letting the 
> default servlet return a static file, it will take into account
> some kind of counter Can you give me some examples for how to add a
> filter in default webapp so that the default servlet will take a
> count every time when a click for the url?

You can't count clicks: you can only count requests for a particular
resource.

You will have to write your own code. Attaching a filter to a URL
pattern is trivial: Google for it if you want to know how to configure it.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlA9IykACgkQ9CaO5/Lv0PBnJgCfUzJmtJT+dsA1Oj2p8O5i3MgX
KdkAoMIXu0eoZy18DU6Y53RkUPYIZlZI
=fzkW
-----END PGP SIGNATURE-----

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

Reply via email to