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

when everything can be done by static block then why do we use main method?.

2 Answers  


What are variable arguments or varargs?

0 Answers  


Can you explain the usages of class.forname()?

0 Answers  


How do you compare objects in java?

0 Answers  


Explain about data types?

0 Answers  






Is there a case when finally will not execute?

0 Answers  


What is null statement?

0 Answers  


What is the purpose class.forname method?

0 Answers  


Write a program to print fibonacci series up to count 10.

0 Answers  


What access modifiers can be used for methods?

0 Answers  


What is the private method modifier?

0 Answers  


What is a java applet? What is an interface?

0 Answers  


Categories