Filters are used to log events. It is kind of an interceptor for the requests and responses that go and come from a servlet. Don't confuse them with servlets!
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!