What is a filter, and how does it work?

Welcome to Toppersarena.com Forums Computer Language Arena What is a filter, and how does it work?

This topic contains 0 replies, has 0 voices, and was last updated by Admin admin 5 years, 10 months ago.

Viewing 1 post (of 1 total)
  • Author
  • #1872

    What is a filter, and how does it work?

    A filter dynamically intercepts requests and responses to transform or use the information contained in the requests or responses but typically do not themselves create responses. Filters can also be used to transform the response from the Servlet or JSP before sending it back to client. Filters improve reusability by placing recurring tasks in the filter as a reusable unit.

    A good way to think of Servlet filters is as a chain of steps that a request and response must go through before an HTML page in a Web application.

    The filters can be used for caching and compressing content, logging and auditing, image conversions (scaling up or down etc), authenticating incoming requests, XSL transformation of XML content, localization of the request and the response, site hit count etc.


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.