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 scalable, portability in the view of J2EE?

2511


What happens when a thread cannot acquire a lock on an object?

1020


Are we allowed to change the transaction isolation property in middle of a transaction?

1019


What are JTA/JTS and how they used by client?

2211


Why is string immutable in java?

1085


What is the relationship between the canvas class and the graphics class?

1028


What are the different approaches to represent an inheritance hierarchy?

1060


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

1162


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

1017


why static class in java

1752


Explain how will the struts know which action class to call when you submit a form?

945


What do you mean by Socket Programming?

1057


Why are component architectures useful?

1047


What is a session? Can you share a session object between different theads?

967


What are the types of scaling?

1075