What is filter? Can filter be used as request or response?
Answer / mahesh
A filter is a reusable piece of code that can transform the
content of HTTP requests,responses, and header information.
Filters do not generally create a response or respond to a
request as servlets do, rather they modify or adapt the
requests for a resource, and modify or adapt responses from
a resource.
| Is This Answer Correct ? | 10 Yes | 1 No |
What is MIME Type?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
What are different Authentication options available in Servlets.
What is the capacity that doGet method can send to the server?
How a servlet is unloaded?
What are the types of ServletEngines?
How to handle the debug errors in servlets?
What is the difference between a generic servlet and http servlet?
What’s the difference between sendredirect and forward methods
What is ServletContext() and what is its use?
9 Answers Prime Technology, TCS,
How do you create a cookie using servlet?
What are the differences between servlet context vs servlet config?