Struts and Model View Controller (MVC)
Struts follow Model View Controller Architecture. Components is divided based on MVC.
Controller :
The ActionServlet and the collaborating classes are RequestProcessor, ActionForm, Action, ActionMapping and
ActionForward in in Controller category.
ActionServlet :
The central component of the Struts Controller is the ActionServlet. It is
a concrete class and extends the javax.servlet.HttpServlet. It performs
two important things.
1. On startup, its reads the Struts Configuration file and loads it into memory in
the init() method.
2. In the doGet() and doPost() methods, it intercepts HTTP request and
handles it appropriately.
View :
The View category contains utility classes – variety of custom tags (html,bean,logic) and JSP.
Model :
Struts does not offer any components in the Model Category. Your Action class contains business logic may be model.