explain filters in java?

Answers were Sorted based on User's Feedback



explain filters in java?..

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

explain filters in java?..

Answer / suresh royal

Filter is a special web resource program that is capable of
trapping the request and taking the response of other web
resource programs.

Filter is a interface .

A servlet program which is implemented javax.servlet.Filter
interface is called "Servlet Filter"

Filter having three methods..
==================================
init(FilterConfig fg)
DoFilter(SReq req ,Sres res,FilterChain fc)
destroy()

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More Servlets Interview Questions

What do you mean by singlethreadmodel interface?

1 Answers  


Explain the difference between generic servlet and http servlet?

1 Answers  


What are all the ways for session tracking?

1 Answers  


Explain in detail about applet to servlet communication?

1 Answers  


What are the types of servlet?

1 Answers  


which method in doGet or doPost is use to send binary date to server

2 Answers   HCL,


How to find whether a parameter exists in the request object?

1 Answers  


Explain request dispatcher and its methods.

1 Answers  


give the syntax of doGet() and doPost()?

2 Answers  


Which java framework is most popular?

1 Answers  


What is the directory structure of web application?

1 Answers  


Which java application server is the best?

1 Answers  


Categories