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


Please Help Members By Posting Answers For Below Questions

What must be implemented by all servlets?

574


Can we refresh servlet in client and server side automatically?

590


What are the types of Session Tracking ?

642


What is servlet initializer?

499


What are the differences between the servletconfig interface and the servletcontext interface?

576






What is session tracking?

696


What is servlet in simple terms?

561


What are the differences between forward() method and sendredirect() methods?

544


What's the difference between authentication and authorization?

544


Explain how does JSP handle run-time exceptions?

578


What is the web server used for running the Servlets?

576


Explain the working of service() method of a servlet.

498


how the HTML data stored in web server?

1952


Is java servlet still used?

585


What is the use of httpservletresponsewrapper?

528