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 |
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
What is the ServletConfig() and what is its use?
When should you prefer to use doget() over dopost()?
What is servlet name in web xml?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
Why do we use sendredirect() method?
What is the difference between servlet and filter?
What is preinitialization of a servlet?
Why do we need a constructor in a servlet if we use the init method?
Servlet Chaining? How do you do the Filtering in Servlets?
What are the differences between the servletconfig interface and the servletcontext interface?
Which event is fired at the time of session creation and destroy?