...
Most often, the Model is represented as a graph of JavaBean objects. The Model should do the "heavy lifting", and the Action will act as a "traffic cop" or adapter. The framework provides sophisticated, automatic type conversion to simplify transfering data between rich domain objects and text-only HTTP requests.
Struts 2 Architecture in a Nutshell
Struts 2 provides a flexible control layer based on standard technologies like Java Filters, JavaBeans, ResourceBundles, Locales, and XML.
- The web browser requests the page
- The Filter Dispatcher looks at the request and determines the appropriate Action<
- The Interceptors automatically apply common functionality to the request like workflow, validation, and file upload handling
- The Action method executes, usually storing and/or retrieving information from a database
- The Result renders the output, be it HTML, images, or PDF, to the browser
Struts Tags in a nutshell
The Struts Tags help you create rich web applications with a minimum of coding. Often, much of the coding effort in a web application goes into the pages. The Struts Tags reduce effort by reducing code.
...