In MVC2 controller is _____________
-
JSP
-
Servlet
-
Both
-
None of the above
B
Correct answer
Explanation
In MVC2 architecture, a servlet serves as the controller component. The controller servlet receives HTTP requests, delegates business logic processing to appropriate components (often JavaBeans or EJBs), manages session state, and selects the appropriate JSP view for rendering the response. This clear separation of concerns is a key advantage of MVC2.