explain filters in java?

Answer Posted / srikanth

filters are used to preprocessing and postprocessing of
tasks like login,authorization,data compression,data
encoding etc

for this u need to override intit(),dofilter(),and destroy()

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?

2447


Differentiate between the get and post method

777


How to make sure a servlet is loaded at the application startup?

747


What are the kinds of http requests?

776


What is the process for chaining servlet?

785


Why doesn’t a servlet include main()? How does it work?

851


Is dispatcher servlet a singleton?

730


Explain the custom jsp tags and the beans.

788


What is a cookie What is the difference between session and cookie

800


Why don't we write a constructor in a servlet?

783


How are filters?

797


What is the need of session tracking in web application?

764


What is meant by session? Tell me something about httpsession class?

775


Explain url encoding in servlet?

784


What do you mean by singlethreadmodel interface?

779