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

How many times may an objects finalize() method be invoked by the garbage collector?

1092


Write a singleton program?

1069


Explain the advantages and disadvantages of detached objects.

1030


What is a tasks priority and how is it used in scheduling?

1062


What is the purpose of the finally clause of a try-catch-finally statement?

1038


What you mean by COM and DCOM?

1066


What is RMI and what are the services in RMI?

1179


What is the diffrence between a local-tx-datasource and a xa-datasource?

1063


Name the class that is used to bind the server object with RMI Registry?

2171


Explain what is synchronization?

1108


What is ripple effect?

1086


Explain about local interfaces.

1070


What is the difference between system.out ,system.err and system.in?

1110


Explain about RMI Architecture?

1086


what is meant by JRMP?

2361