What is Servlet Filter And What does it work?
Answer Posted / 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 |
Post New Answer View All Answers
Define the remote object implementation?
What is RMI and what are the services in RMI?
How will you pass parameters in RMI? Why do you serialize?
What is the difference between the font and fontmetrics classes?
whats is mean by tiles in struts
How would you detect a keypress in a jcombobox?
What is Stream Tokenizer?
What is the relation between the infobus and rmi?
What are externizable interface?
Why are my checkboxes not being set from on to off?
What is a session? Can you share a session object between different theads?
What value does read() return when it has reached the end of a file?
What are the different algorithms used for clustering?
What is ioc concept?
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?