Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

Image Added

  1. The web browser requests the page
  2. The Filter Dispatcher looks at the request and determines the appropriate Action<
  3. The Interceptors automatically apply common functionality to the request like workflow, validation, and file upload handling
  4. The Action method executes, usually storing and/or retrieving information from a database
  5. 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.

...