Kizspy | Question: 23
(Choose 1 answer)
You are working on a JSP MVC application where multiple views need to display the same set of data.
Discuss how you would avoid code duplication and ensure à consistent data presentation across different
views.
A. Duplicate the data retrieval logic in each JSP page.
B. Implement a shared DataProvider class in the Model.
C. Use global variables within the JSP pages to store and share data.
D. Embed the data retrieval logic within each individual JSP page.