From a MVC perspective, Struts provides the
-
Model
-
View
-
Controller
-
None of Above
In the Apache Struts framework, actions and controllers manage user requests and business logic flow, mapping directly to the Controller component of the Model-View-Controller design pattern.
To answer this question, let's go through each option to understand why it is correct or incorrect:
Option A) Model - Struts does provide support for handling the model component in the MVC architecture. However, it is not the primary focus of Struts.
Option B) View - This option is correct because Struts provides the view component in the MVC architecture. It offers various features and components like JSP (JavaServer Pages) and custom tag libraries to handle the presentation logic.
Option C) Controller - Struts does provide support for handling the controller component in the MVC architecture. It offers an action-based framework where the controller logic is managed through action classes.
Option D) None of Above - This option is incorrect because Struts does provide support for both the view and controller components in the MVC architecture.
The correct answer is B) View. This option is correct because Struts primarily focuses on providing the view component in the MVC architecture.