Search This Blog

Sunday, November 21, 2010

The Essentials of Filters in j2ee

A filter dynamically intercepts requests and responses to transform or use the information contained in the requests or responses. Filters typically do not themselves create responses, but instead provide universal functions that can be "attached" to any type of servlet or JSP page.
Filters are important for a number of reasons. First, they provide the ability to encapsulate recurring tasks in reusable units. Organized developers are constantly on the lookout for ways to modularize their code. Modular code is more manageable and documentable, is easier to debug, and if done well, can be reused in another setting.

All the great article and  sample could be found here The Essentials of Filters.
Must read a  pdf file SERVLET AND JSP FILTERS
more sample catalog JAVA servlet / filter samples

enjoy
Yaniv

No comments: