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
What are the call back methods in entity bean?
What restrictions are placed on the location of a package statement within a source code file?
How to deploy Jar, War files in J2EE?
what is handle?
What is a modular application?
What is the relation between the infobus and rmi?
Name three component subclasses that support painting?
Why are component architectures useful?
What is a clone?
what is a non-repeatable read?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
When a thread blocks on i/o, what state does it enter?
What’s jboss cache in short?
What you mean by COM and DCOM?