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 is colon_pkg_prefixes and what is its use?
which type of objects reference will be given to client?
Which container method is used to cause a container to be laid out and redisplayed?
Define prototype?
What is JTS?
Is there a guarantee of uniqueness for entity beans?
Name the eight primitive java types.
What is clustering? What are the different algorithms used for clustering?
Which containers use a border layout as their default layout?
How are commas used in the intialization and iteration parts of a for statement?
What is a policy?
we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?
Explain the difference between object state and behavior?
What are the different methods of identifying an object?
What is the difference between java class and bean?