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 |
Is servlet a controller?
What is servlet name in web xml?
What are the uses of servlet and what is servlet chaining?
Explain their methods? Tell me their parameter names also have you used threads in servlet?
Can threads be used in Servelet?
What is the use of servlet context?
Tell us something about servletcontext interface.
Difference between GET and POST?
Is the init(ServletConfig sc) throws IOException or not?
What are some disadvantages of storing session state in cookies?
how the jsp page can be regenerated?
Can you refresh servlet in client and server-side automatically?