explain filters in java?
Answers were Sorted based on User's Feedback
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 |
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 |
What exactly is a servlet?
What is SingleThreadModel interface?
What are different types of SessionTracking?
what is the difference between servlets and struts?
Explain the difference between generic servlet and http servlet?
If my browser does not support cookie, and my server sends a cookie instance what will happen?
What is servlet instance?
Explain the architechure of a servlet?
What is the difference between JspWriter and PrintWriter
Can you refresh servlet in client and server-side automatically?
How do you pass the data from one servlet to another servlet?
What are the different methods involved in the process of session management in servlets?