Framework Components Overview

This chapter introduces the various Struts components and briefly describes the purpose of each… The chapter lays the groundwork so that it becomes easier to be familiar with the class names and their purpose, even if the details of a particular component have not been covered. Using combinations of all the components, it is possible to mention how own web applications can be built. This chapter has provided a glimpse at the basic components provided in the Struts framework and touched on some of the tags provided in the Struts tag library. It introduced the various classes provided in the Struts packages so that it is possible to start becoming familiar with the classes to work with. There is only one controller component in the Struts framework, and that is the org.jakarta.struts.action.ActionServlet. The ActionServlet represents the Controller in the MVC design pattern and implements both the Front Controller and the Singleton pattern. The version of ActionServlet that is distributed with the framework implements the logical flow for each incoming client HTTP request. MVC framework contains the Model components that focus on keeping track of the state of application. Using classes provided in the Struts framework, it is possible to create own Action components.