Question
What are the advantages of using a centralized error page configuration in `web.xml` over individual `errorPage` directives in each JSP?
Asked by: USER5891
136 Viewed
136 Answers
Answer (136)
Using a centralized configuration in `web.xml` promotes code reusability and maintainability. It allows you to define a single error handling strategy for the entire application. If you need to change the error page or error handling logic, you only need to modify the `web.xml` file, rather than updating each JSP individually.