You have been recruited by an online retailer of footwear to conduct a review of their online
systems. Your primary Finding is that the development team has implemented duplicated complex
business logic as Java scripts directly into the JSPs, causing performance, scalability, and
maintainability issues.
Which two design patterns would you select to improve the current code base?
A.
View Helper
B.
From Controller
C.
Composite View
D.
Service-to-Worker
E.
Business Delegate
A,D
D
A & B
A,D From Controller not exist
A and B
A and D
A and D is correct answer.
Explanation :
Requirements : Needs to remove duplicated complex business logic from JSPs to avoid performance, scalability, and maintainability issues.
View Helper Pattern : Use Views to encapsulate formatting code and Helpers to encapsulate view-processing logic. A View delegates its processing responsibilities to its helper classes, implemented as POJOs, custom tags, or tag files.
Service-to-Worker : Use Service to Worker to centralize control and request handling to retrieve a presentation model before turning control over to the view.