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 is the simpletimezone class in java programming?

0 Answers  


why use interface? if interface declear a method implement in class. why direct implement method in class

1 Answers   HCL,


Iterator in the HashMap is fail-safe means what?

9 Answers   CTS, IBM, Subex,


Can we iterate through collection using for loop?

2 Answers   Rolta,


What is java regex?

0 Answers  






What is java thread dump, how can we get java thread dump of a program?

0 Answers  


what is dynamic method dispatch ?

27 Answers   Fidelity, MUET, SDSF,


What is the benefit of using enum to declare a constant?

0 Answers   Aspire, Infogain,


how to run ecllipse with jettyserver for windows environment using batch file

0 Answers  


why ,we are using jsp and html.which one is better?

2 Answers   Photon,


If goto and const is reserve words than why it is not work in java?

0 Answers  


What is the immediate superclass of the Dialog class?

2 Answers  


Categories