In a complex web application using MVC and servlets, a new feature requires integration of a third-party service. Where should this integration primarily take place?
- In a separate utility class
- In the Controller
- In the Model
- In the View
In MVC architecture, business logic, including third-party service integration, is primarily handled in the Controller. This ensures separation of concerns and makes the application more modular.
Loading...
Related Quiz
- Which method can be used in servlets to programmatically enforce security constraints?
- How does a servlet typically report an error back to the client?
- How are requests forwarded from servlets to the appropriate view in an MVC framework?
- How would a filter log request information without altering the request itself?
- Describe how a servlet can process AJAX requests using GET and POST methods.