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 are the different mode that servlets can be used?

549


When to use doget() and when dopost()?

625


List out difference between a JavaBean from a Servlet?

562


Whether thread can be used in servlets?

728


What is url encoding and url decoding

582






I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

2532


What are all the ways for session tracking?

593


What is the use of httpservletresponsewrapper?

530


What do you mean by scope object and what are its types?

566


How can we implement a jsp page?

627


Difference between GET and POST?

707


How can the session in servlet be destroyed?

639


How can a servlet be used to generate plain text instead of html?

543


What is life cycle of Servlet?

605


What is difference between PrintWriter and ServletOutputStream?

768