Among the types of functionality available to the developer needing to use filters are the following:
� The accessing of a resource before a request to it is invoked.
� The processing of the request for a resource before it is invoked.
� The modification of request headers and data by wrapping the request in customized versions of the request object.
� The modification of response headers and response data by providing customized versions of the response object.
� The interception of an invocation of a resource after its call.
� Actions on a servlet, on groups of servlets, or static content by zero, one, or more filters in a specifiable order.
Here is sthing that I extract from the Servlet 2.4 Specification... Hope it helps you...
Filtering can be used to manipulate also the headers of your request/response.
You can also use it for decompressing of your response before it is sent to the client.
Recording of sessions that are active on the server.
Basically i was not able to find the implication between the servlets and the filters... Yes now i think that filters basically can be added any time or removed to provide the common funcionality to all the servlets..
Moreover without touching the base servlet tcode....
m i rite???
Any other examples are Welcome..
Thanx a lot Thomas