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
Why is actionform a base class rather than an interface?
What are the diff types of exception?
To what value is a variable of the string type automatically initialized?
which type of objects reference will be given to client?
What is ioc concept & explain it?
difference between ejb,struts,hibernate,spring and jsp
Where can I find seam examples and documentation?
What is synchronization and why is it important?
What are the call back methods in entity bean?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
How can I avoid validating a form before data is entered?
whats is mean by connectionpooling
Brief description about local interfaces?
What is jboss?
How a component can be placed on Windows?