Struts 1.1 Controller UML diagrams
Last update : 19/12/2003
back to HOME PAGE
Introduction The goal of this article is to illustrate the Struts 1.1 Controller with UML diagrams. This article is an introduction to the Struts framework in order to help beginners programmers to understand the MVC model 2.
Contents : 1. 2. 3. 4. 5.
Context description of the example with the struts-config.xml file Struts 1.1 Controller Class Diagram of the org.apache.struts.action Sequence Diagram Links about Model View Controller model 2 pattern and the Struts implementation. Use my diagrams - the license to respect if you want to use the code
To print the figures of this article, configure your printer in landscape mode.
back to Top
1. Context description In order to show how to use the Struts framework classes, I have designed some diagrams starting from a simple example : a client submits a form to a "forwarded" page :
struts-config.xml This is the configuration resource file - which is parsed by the Struts Controller for initialization.
back to Top
2. Class diagrams
Note I have forgotten the association between the Action class and the ActionServlet. I will update the diagram after the summer ...
Application config, org.apache.struts.config package ModuleConfigImpl contains a collection of static configuration information that describes an application module. For application initialization, struts-config.xml is
parsed in order to dispatch mapping information in instances of ActionConfig, ForwardConfig and FormBeanConfig. •
Mapping management : o ActionConfig contains information of how specific events are mapped to Actions classes. path is a request URI path used to select this mapping. Example in the jsp page :