What is filter? Can filter be used as request or response?
Answer Posted / 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 |
Post New Answer View All Answers
What is the difference between using getSession(true) and getSession(false) methods?
Write a program to show the functionality of doget and dopost method?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
Define the lifecycle for executing a jsp page.
What do you mean by annotations in servlet?
What is the servlet?
What are the types of servlet?
What is the difference between jsp and servlet life cycle?
How the servlet is loaded?
What is the need of session tracking in web application?
What is dispatcher servlet?
Can we use the constructor, instead of init(), to initialize servlet?
Write the code to get the server information in servlet.
List some life cycle methods of a servlet.
Explain servlet life cycle?