Design patterns used in Struts framework
- MVC: Struts framework is based on Model 2 MVC pattern.
- FrontController : Provides a centralized controller (ActionServlet) for managing thehandling of requests.
- Command : Struts controller uses the Command design pattern.
- Adapter : Action classes use the Adapter design pattern.
- Template : The process() method of the RequestProcessor uses the Template method design pattern.
- Composite View : Used in Struts Tiles.
- VO / Context object : Form Beans that encapsulate the values entered on a form.
- Chain of Responsibility pattern (CoR) : Request Processor is composed using commons chain, which is an implementation of CoR pattern.
- Dispatcher View : Using ActionMapping to forward the flow to the View after performing some business logic from the action class.
- View Helper : Encapsulates logic that is not related to presentation formatting into Helper components.
- Service to Worker : Combines a Dispatcher component with the Front Controller and View Helper patterns.
- Synchronizer Token : This strategy addresses the problem of duplicate form submissions. Uses this strategy to control direct browser access to certain pages.
- IoC (Inversion of Control) or DI (Dependency Injection) is used by Struts 2.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.