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...

Explain Life cycle of Servlet Filter.

Answer Posted / surajkumar.java

A java class which implements javax.servlet.Filter is
configured as filter in web.xml file.
The web container calls the init method to initialize filter
by passing javax.servlet.FilterConfig object to retrieve the
filter’s init parameters.
The doFilter method of Filter class performs the actual
processing like authentication, data format conversion and
page redirect to other page and catching etc. The doFilter
method passes the request and response object of the current
request and the filter chain object to invoke next filter in
the chain.
Web container calls the destroy() method to take the filter
out of service.

Is This Answer Correct ?    29 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is in-memory replication?

1069


Why are my checkboxes not being set from on to off?

1140


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

1091


What is colon_pkg_prefixes and what is its use?

2520


Name three component subclasses that support painting?

1083


Which javutil classes and interfaces support event handling?

1046


Why do I get a duplicate name error when loading a jar file?

1154


Can I map more than one table in a cmp?

1087


what are the activation groupworks?

2203


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

2209


To identify IDL language what mapping mechanism is used?

3946


Can I run seam outside of jboss as?

1080


Describe responsibilities of Activator?

2277


What is ripple effect?

1082


Is jvm a overhead?

1105