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 is use of parseQueryString ?
How servlets can be automatically reloaded?
How to handle the debug errors in servlets?
What is the importance of init() method in Servlet ?
What is servlet container?
Name the different ways of session tracking.
When the methods init() and Distroy() will be called?
Is dispatcher servlet a singleton?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
can servlet have instance variables?
What are the different ways we can maintain state between requests?
Are Servlets by default thread safe or not? thanks in advance regards Sudhakar