What is Servlet Filter And What does it work?
Answer / surajkumar.java
Filters are powerful tools of Servlet platform. These are
just like a servlet which plugs into the request handling
process and executes in addition to the normal page
processing. Filters manipulate both request and response in
web application. Filters can be applied to any resources
like HTML, graphics, a JSP page, servlet etc, served by a
servlet engine. These are commonly used for authentication,
data format conversion and page redirect to other page and
catching etc.
A java class which implements javax.servlet.Filter is
configured as filter in web.xml file. For each request in
web application, the servlet container decides which filters
to apply, and adds those filters to a chain in the same
order they appear in web.xml. As a filter is just like a
servlet, it has its life cycle (init(), doFilter() and
destroy() methods).
| Is This Answer Correct ? | 22 Yes | 3 No |
What is a class loader? What are the different class loaders used by jvm?
Why is main purpose of XML?
the same information whether it will connect to the database or it will be used previous information?
What is the applet sandbox?
JMS based on what technology?
what is diff between Access modifier and specifier?
How are commas used in the intialization and iteration parts of a for statement?
How we set Bean Id when we are creating web application using SpringMVC and Hibernet Integration
Describe activation process?
Explain what is synchronization?
What are the JSP implicit objects ?
What modifiers may be used with an interface declaration?