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 |
Is java a utf 8 string?
What are passing parameters?
When should I use singleton pattern?
Can this keyword be used to refer static members?
What is numeric function?
What is exception propagation?
How to Sort Strings which are given in List and display in ascending order without using java api.
Can we declare a class as static?
What are the two types of streams offered by java 8?
Difference between method overloading and method overriding in java ?
If a method is declared as protected, where may the method be accessed?
What technique can be employed to compare two strings?