Wednesday, 14 August 2013

What design patterns are used in Struts?

Struts is based on model 2 MVC (Model-View-Controller) architecture. 
Struts controller(ActionServlet,Struts-config) uses the command design pattern
Action classes use the adapter design pattern
The process() method of the RequestProcessor uses the template method design pattern
Struts also implement the following J2EE design patterns.
  • Service to Worker
  • Dispatcher View
  • Composite View (Struts Tiles)
  • Front Controller
  • View Helper
  • Synchronizer Token

No comments:

Post a Comment