what is servlet filter?

Answers were Sorted based on User's Feedback



what is servlet filter?..

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

what is servlet filter?..

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

Post New Answer

More Core Java Interview Questions

What are anonymous inner classes?

0 Answers  


What is the format of Inner Class after it compiled?

1 Answers  


How to know the host from which Applet is originated?

1 Answers   Wipro,


Is Constructor possible in abstract class in java ?

0 Answers   HCL,


How many bits is a char?

0 Answers  






why java does compile time polymorphism at run time ?

6 Answers   CTS, TCS,


What is difference between add() and addelement() in vector?

0 Answers  


What are parsers? Dom vs sax parser.

0 Answers  


What are the five major types of reference sources?

0 Answers  


What is the difference between access specifiers and access modifiers in java?

0 Answers  


What are the properties of thread?

0 Answers  


What loop means?

0 Answers  


Categories