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 exactly is a servlet?

0 Answers  


What is SingleThreadModel interface?

0 Answers  


What are different types of SessionTracking?

2 Answers  


what is the difference between servlets and struts?

3 Answers  


Explain the difference between generic servlet and http servlet?

0 Answers  






If my browser does not support cookie, and my server sends a cookie instance what will happen?

0 Answers  


What is servlet instance?

0 Answers  


Explain the architechure of a servlet?

0 Answers  


What is the difference between JspWriter and PrintWriter

4 Answers   Artech,


Can you refresh servlet in client and server-side automatically?

0 Answers  


How do you pass the data from one servlet to another servlet?

11 Answers   HCL,


What are the different methods involved in the process of session management in servlets?

0 Answers  


Categories