what is servlet filter?
Answers were Sorted based on User's Feedback
Answer / dileep
In http servlet contains doget,dopost methods etc and it
takes two parameters only namely as
HttpServletRequest,HttpServletResponse and in Filter
concept contain one method has doFilter method .it takes 3
parameters namely as
HttpServletRequest,HttpServletResponse,FilterChain.the
Filter chain is use to convert one filter to another filter
Filters are mainly used for filtering the components and we
can do any modifications using Filters.
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / jeh
Filter is a web component for web based applications. It
intercepts the request before calling service method and
process the response after executing the service method.
Filter mainly validates the client submitted data
| Is This Answer Correct ? | 2 Yes | 2 No |
What is a class component?
What is the java virtual machine?
what is meant by serialization?
What is object data type?
When is the garbage collection used in Java?
How does remove work in java?
What is an object class?
Why stringbuilder is not thread safe in java?
What are the main differences between notify and notifyAll in Java?
Can we define private and protected modifiers for variables in interfaces?
what is request dispatcher and how does it work?
What are the 8 primitive data types in java?