What is Servlet Filter And What does it work?
Answer / 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 |
Difference between DurableSubscription and non- DurableSubscription?
Which component handles cluster communication in jboss?
whats is mean by object and class?
What is the difference between the ‘font’ and ‘fontmetrics’ class?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
Is multiple try block is possible in single java Application......
In real time project when will we use Abstract class. and what are the difference between abstract and interface.
6 Answers DELL, FCS, Polaris, Tanla Solutions, TCS,
What are the different types of exception?
what is difference between checked exception & unchecked exception in java?
What is the difference between Super and This Keyword?
what is singleton class? where it mainly used in the projects?
Explain what is orm?