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 SSL?
In jsp custom tags from child tags to how many levels of parent tags you can acess
What do you mean by web applications? Explain web application directory arrangement?
What are the types of ServletEngines?
What are the functions of the servlet container?
What are the disadvantages of storing session state in cookies?
How values can be passed from HTML page to servlet?
Is the init(ServletConfig sc) throws IOException or not?
What is the type of method for sending request from http server?
what are the different services provided by the web server?
What do you mean by request dispatcher in servlet? Also explain its methods.
What is the use of Servlets?