Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why is actionform a base class rather than an interface?

1066


What are the diff types of exception?

1061


To what value is a variable of the string type automatically initialized?

1137


which type of objects reference will be given to client?

2485


What is ioc concept & explain it?

1087


difference between  ejb,struts,hibernate,spring and jsp

2873


Where can I find seam examples and documentation?

1099


What is synchronization and why is it important?

1121


What are the call back methods in entity bean?

1072


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

1045


How can I avoid validating a form before data is entered?

1003


whats is mean by connectionpooling

2013


Brief description about local interfaces?

1273


What is jboss?

1039


How a component can be placed on Windows?

2857