What is Servlet Filter And What does it work?
Answer Posted / surajkumar.java
Filters are powerful tools of Servlet platform. These are
just like a servlet which plugs into the request handling
process and executes in addition to the normal page
processing. Filters manipulate both request and response in
web application. Filters can be applied to any resources
like HTML, graphics, a JSP page, servlet etc, served by a
servlet engine. These are commonly used for authentication,
data format conversion and page redirect to other page and
catching etc.
A java class which implements javax.servlet.Filter is
configured as filter in web.xml file. For each request in
web application, the servlet container decides which filters
to apply, and adds those filters to a chain in the same
order they appear in web.xml. As a filter is just like a
servlet, it has its life cycle (init(), doFilter() and
destroy() methods).
| Is This Answer Correct ? | 22 Yes | 3 No |
Post New Answer View All Answers
What do you know about seam?
Why a client should be multithreading? Explain.
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
What is clustering? What are the different algorithms used for clustering?
What is the difference between static and non-static with examples?
Explain the difference between object state and behavior?
What state does a thread enter when it terminates its processing?
What do you mean by Socket Programming?
What event results from the clicking of a button?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
What is the form of storage space in java?
What is table mutation and how do you avoid it?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
What is the map interface?
How are the elements of a cardlayout organized?