What is filter? Can filter be used as request or response?



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

Post New Answer

More Servlets Interview Questions

Describe in brief RequestDespatcher?

0 Answers   Tech Mahindra,


When should you prefer to use doget() over dopost()?

0 Answers  


What is Servlet Context?

5 Answers  


What do you mean by annotations in servlet?

0 Answers  


When the methods init() and Distroy() will be called?

2 Answers  






What is servletconfig?

0 Answers  


How can you use a servlet to generate a plain text instead of html?

0 Answers  


In servlets, Why do we need both GET and POST method implementations?

3 Answers   IBM,


Explain their methods? Tell me their parameter names also have you used threads in servlet?

0 Answers  


Write a command to get actual path of a servlet to the server?

0 Answers  


Hi Friends, Suppose you have a web appliction which consists of 100 clients are connected with Connection pooling and they are associated with 100 connection objcet and connected with DB sever,Due some problem DB-Server suddenly crashed and server came to down state for a while after few minutes DB-server once again up,Now how will I manage my Pool Management with my 100 clients...can any one tell me??????????????????

3 Answers   ProgressSoft,


How a servlet is unloaded?

0 Answers  


Categories