what is servlet filter?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is arraylist a class in java?

530


What is downcasting?

567


What is tochararray in java?

496


Why static functions are used?

563


What is the difference between the paint() and repaint() methods?

583






What is the difference between heap memory and stack memory?

613


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

513


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

503


What is the Scope of Static Variable?

728


Explain the reason behind ending a program with a system.exit(0)?

594


How to create a thread in java?

600


What is the integer of 16?

533


Explain the differences between static and dynamic variables?

582


Is empty .java file name a valid source file name?

583


What is the program development process?

558