Question: In below there is question and answer, What I need is I want comment about the answer( feel free to agree or disagree with answer

 In below there is question and answer, What I need is

In below there is question and answer, What I need is I want comment about the answer( feel free to agree or disagree with answer and explain (in 2 or 3 paragraph) why you agree or disagree) Question: when do you implement the listeners/filters..., expalin the advantage and disadvantage of each with example? Answer: Listeners allow your application to react to certain events, like when an application starts or when a new session starts. Even though most processing can be done in the doGet or doPost method, it is usually nota good idea to do all processing in those methods. Adding listeners can help make the code simpler and easier to read. Listeners also allows for more efficient resource management. Filters intercept HTTP requests and execute code before or after the requested servlet or JSP is requested. They are ideal for handling cross-cutting concerns like writing data to a log file. Some of the advantages of Filters is that they allow you to store code in a single location that can be applied to multiple parts of the application, and you have control over when filters are executed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!