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 json parser in java?
Can a class extend 2 classes in java?
Can we make main() thread as daemon?
Name and explain the types of ways which are used to pass arguments in any function in java.
What is difference between equal and == in java?
Why for each loop is used?
Do you know how to reverse string in java?
why string constant pool in java
How many types of constructors are used in java?
Is string is a keyword in java?
What do the thread?class methods run() and start() do?
What is the use of using enum to declare a constant?