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

What is the web server used for running the Servlets?

0 Answers  


how to make the IP address to .com

1 Answers   iGate,


Why are http servlets used in programming?

0 Answers  


what is the control flow in servlet when we send a request?

5 Answers   TCS,


What are the parameters of the service method ?

2 Answers  






How is a servlet implemented in code?

0 Answers  


When we don't write any constructor for the servlet, how does container create an instance of servlet?

2 Answers   Godrej, TATA,


What do you mean by cgi in servlet?

0 Answers  


how to use servlets with j2ee ?

2 Answers   Tech Mahindra,


What is the default HttpRequest method?

6 Answers  


What is the use of httpservletrequestwrapper?

0 Answers  


What’s the difference between forward() and sendredirect() methods?

0 Answers  


Categories