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
Describe activation process?
What are transaction attributes?
What event results from the clicking of a button?
Difference between loadclass and class.forname?
What happens when a thread cannot acquire a lock on an object?
What is a class loader?
What is prototype?
Explain phantom read?
when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??
What state does a thread enter when it terminates its processing?
What is ioc concept & explain it?
What class is used to create Server side object ?
how i secure my site with the https protocol.what are the steps?
which type of objects reference will be given to client?
what is Activation Instantinator?