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 |
Can we use the constructor, instead of init(), to initialize servlet?
What do you mean by session tracking and also explain its techniques?
what is servlet chaining?
Why the container loads server at the application startup and how?
How do you configure a centralized error handler in servlets?
What is meant by Servlet? What are the parameters of service method?
What are the kinds of http requests?
Explain the servlet context.
What are the uses of servlet and what is servlet chaining?
What is connection pooling?
can i modify the data which are generated by the servlet
when you comppile the servlet is it neccesary to restaet the tomcat server?