Friday 15 March 2019

What is Filter and why used in Servlet? tccicomputercoahching.com

Filters are used to intercept and process requests before they are sent toservlets (in case of request). Filters are used to intercept and process a response before they are sent back to client by a servlet . The doFilter () is called every time the container determines that the filter should be applied to a page.



Each filter implements the javax.servlet.Filter interface , which includes a doFilter() method that takes as input a request and response pair along with a filterchain , which is an instance of a class (provided by the servlet container) that implements the javax.servlet.FilterChain interface.

For more information about filter at TCCI

Call us @ 9825618292

Visit us @ www.tccicomputercoaching.com

No comments:

Post a Comment