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

How can we refresh automatically when new data has entered the database?

0 Answers  


What is a web application and what is it’s directory structure?

0 Answers  


Explain servlet events?

0 Answers  


Which method is called when reference variable is passed in system.net?

0 Answers   HCL,


Which protocol will be used by browser and servlet to communicate

0 Answers  






How we can check in particular page the session will be alive or not

4 Answers   L&T, Symbiosis,


What happens, when client requests for server object, which is not yet loaded into the memory?

2 Answers  


Tell us something about servletconfig interface.

0 Answers  


What are all the ways for session tracking?

0 Answers  


What are cookies and how will you use them?

3 Answers  


What is connection pooling?

4 Answers   Wipro,


What are the type of protocols used in httpservlet?

0 Answers  


Categories