Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

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.

Filter and Servlet

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 @ http://www.tccicomputercoaching.com

 

Leave a comment