# kawasima/struts1-forever architecture

> Architecture diagram of the GitHub repository kawasima/struts1-forever, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kawasima/struts1-forever
- Repository: https://github.com/kawasima/struts1-forever

## Overview

Struts is a Java web-application MVC framework: a servlet fronts request-to-action mapping, with forms and action results supporting the response. Its other major runtime capabilities include JSP tag libraries, multipart handling, validation, internationalized messages, and Tiles-based page composition. The graph emphasizes documented workflow and sampled subsystem relationships; unsampled source is represented only where the tree establishes a distinct capability, so some links are intentionally absent.

Main entry points: [`src/share/org/apache/struts/action/ActionServlet.java`](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionServlet.java) (Action servlet), [`src/share/org/apache/struts/action/RequestProcessor.java`](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/RequestProcessor.java) (Request processor), [`src/share/org/apache/struts/action/ActionForm.java`](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionForm.java) (Action forms), [`src/share/org/apache/struts/taglib/TagUtils.java`](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/TagUtils.java) (Tag utilities)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_controller["MVC controller"]
  node_action_servlet["Action servlet<br/>[ActionServlet.java]"]
  node_request_processor["Request processor"]
  node_action_mapping["Action mapping<br/>[ActionMapping.java]"]
  node_action["Application actions<br/>[Action.java]"]
  node_action_forward["Action forwards<br/>[ActionForward.java]"]
end

subgraph group_configuration["Module configuration"]
  node_module_config["Module configuration<br/>[ModuleConfig.java]"]
  node_form_config["Form configuration"]
end

subgraph group_forms["Forms and validation"]
  node_form_bean["Action forms<br/>[ActionForm.java]"]
  node_validation["Form validation<br/>[FieldChecks.java]"]
  node_multipart["Multipart handling"]
end

subgraph group_presentation["JSP presentation"]
  node_tag_utils["Tag utilities<br/>[TagUtils.java]"]
  node_html_tags["HTML tags"]
  node_bean_tags["Bean tags<br/>[WriteTag.java]"]
  node_logic_tags["Logic tags<br/>[IterateTag.java]"]
  node_nested_tags["Nested tags"]
end

subgraph group_tiles["Tiles composition"]
  node_tiles_tags["Tiles tags<br/>[InsertTag.java]"]
  node_tiles_context["Component context"]
  node_tiles_controller["Tile controller<br/>[Controller.java]"]
  node_action_controller["Action controller"]
  node_tiles_definitions["Tile definitions<br/>[XmlParser.java]"]
end

subgraph group_services["Request services"]
  node_request_utils["Request utilities<br/>[RequestUtils.java]"]
  node_messages["Message resources"]
  node_action_messages["Action messages"]
end

node_web_user(("Web user"))

node_web_user -->|"submits request"| node_action_servlet
node_action_servlet -->|"fronts controller"| node_request_processor
node_request_processor -->|"maps request"| node_action_mapping
node_action_mapping -->|"resolves forward"| node_action_forward
node_action_servlet -.->|"initializes modules"| node_module_config
node_module_config -.->|"stores form settings"| node_form_config
node_request_processor -.->|"populates form"| node_form_bean
node_request_utils -->|"creates form"| node_form_bean
node_form_bean -->|"holds handler"| node_multipart
node_validation -->|"records errors"| node_action_messages
node_html_tags -->|"uses utilities"| node_tag_utils
node_bean_tags -->|"uses utilities"| node_tag_utils
node_logic_tags -->|"uses utilities"| node_tag_utils
node_tiles_tags -->|"uses context"| node_tiles_context
node_action_controller -->|"implements controller"| node_tiles_controller
node_action_controller -->|"uses context"| node_tiles_context
node_tiles_tags -.->|"resolves definitions"| node_tiles_definitions
node_messages -->|"localizes output"| node_bean_tags

click node_action_servlet "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionServlet.java"
click node_request_processor "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/RequestProcessor.java"
click node_action_mapping "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionMapping.java"
click node_action "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/Action.java"
click node_action_forward "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionForward.java"
click node_module_config "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/config/ModuleConfig.java"
click node_form_config "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/config/FormBeanConfig.java"
click node_form_bean "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionForm.java"
click node_validation "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/validator/FieldChecks.java"
click node_multipart "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/upload/MultipartRequestHandler.java"
click node_request_utils "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/util/RequestUtils.java"
click node_messages "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/util/MessageResources.java"
click node_action_messages "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionMessages.java"
click node_tag_utils "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/TagUtils.java"
click node_html_tags "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java"
click node_bean_tags "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/bean/WriteTag.java"
click node_logic_tags "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/logic/IterateTag.java"
click node_nested_tags "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/nested/NestedPropertyHelper.java"
click node_tiles_tags "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/tiles/InsertTag.java"
click node_tiles_context "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/tiles/ComponentContext.java"
click node_tiles_controller "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/tiles/Controller.java"
click node_action_controller "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/tiles/ActionController.java"
click node_tiles_definitions "https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/tiles/xmlDefinition/XmlParser.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_action_servlet,node_request_processor,node_action_mapping,node_action,node_action_forward,node_web_user toneBlue
class node_module_config,node_form_config toneAmber
class node_form_bean,node_validation,node_multipart toneMint
class node_tag_utils,node_html_tags,node_bean_tags,node_logic_tags,node_nested_tags toneRose
class node_tiles_tags,node_tiles_context,node_tiles_controller,node_action_controller,node_tiles_definitions toneIndigo
class node_request_utils,node_messages,node_action_messages toneTeal
```

## Components

### MVC controller

- [Action servlet](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionServlet.java): `src/share/org/apache/struts/action/ActionServlet.java`
- [Request processor](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/RequestProcessor.java): `src/share/org/apache/struts/action/RequestProcessor.java`
- [Action mapping](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionMapping.java): `src/share/org/apache/struts/action/ActionMapping.java`
- [Application actions](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/Action.java): `src/share/org/apache/struts/action/Action.java`
- [Action forwards](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionForward.java): `src/share/org/apache/struts/action/ActionForward.java`

### Module configuration

- [Module configuration](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/config/ModuleConfig.java): `src/share/org/apache/struts/config/ModuleConfig.java`
- [Form configuration](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/config/FormBeanConfig.java): `src/share/org/apache/struts/config/FormBeanConfig.java`

### Forms and validation

- [Action forms](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionForm.java): `src/share/org/apache/struts/action/ActionForm.java`
- [Form validation](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/validator/FieldChecks.java): `src/share/org/apache/struts/validator/FieldChecks.java`
- [Multipart handling](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/upload/MultipartRequestHandler.java): `src/share/org/apache/struts/upload/MultipartRequestHandler.java`

### JSP presentation

- [Tag utilities](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/TagUtils.java): `src/share/org/apache/struts/taglib/TagUtils.java`
- [HTML tags](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java): `src/share/org/apache/struts/taglib/html/BaseHandlerTag.java`
- [Bean tags](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/bean/WriteTag.java): `src/share/org/apache/struts/taglib/bean/WriteTag.java`
- [Logic tags](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/logic/IterateTag.java): `src/share/org/apache/struts/taglib/logic/IterateTag.java`
- [Nested tags](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/nested/NestedPropertyHelper.java): `src/share/org/apache/struts/taglib/nested/NestedPropertyHelper.java`

### Tiles composition

- [Tiles tags](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/tiles/InsertTag.java): `src/share/org/apache/struts/taglib/tiles/InsertTag.java`
- [Component context](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/tiles/ComponentContext.java): `src/share/org/apache/struts/tiles/ComponentContext.java`
- [Tile controller](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/tiles/Controller.java): `src/share/org/apache/struts/tiles/Controller.java`
- [Action controller](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/tiles/ActionController.java): `src/share/org/apache/struts/tiles/ActionController.java`
- [Tile definitions](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/tiles/xmlDefinition/XmlParser.java): `src/share/org/apache/struts/tiles/xmlDefinition/XmlParser.java`

### Request services

- [Request utilities](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/util/RequestUtils.java): `src/share/org/apache/struts/util/RequestUtils.java`
- [Message resources](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/util/MessageResources.java): `src/share/org/apache/struts/util/MessageResources.java`
- [Action messages](https://github.com/kawasima/struts1-forever/blob/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionMessages.java): `src/share/org/apache/struts/action/ActionMessages.java`

### Other components

- **Web user**

## Connections

- Web user → Action servlet: submits request
- Action servlet → Request processor: fronts controller (evidence: `src/share/org/apache/struts/action/ActionServlet.java`)
- Request processor → Action mapping: maps request (evidence: `src/share/org/apache/struts/action/ActionMapping.java`)
- Action mapping → Action forwards: resolves forward (evidence: `src/share/org/apache/struts/action/ActionMapping.java`)
- Action servlet → Module configuration: initializes modules (evidence: `src/share/org/apache/struts/action/ActionServlet.java`)
- Module configuration → Form configuration: stores form settings (evidence: `src/share/org/apache/struts/config/ModuleConfig.java`)
- Request processor → Action forms: populates form
- Request utilities → Action forms: creates form (evidence: `src/share/org/apache/struts/util/RequestUtils.java`)
- Action forms → Multipart handling: holds handler (evidence: `src/share/org/apache/struts/action/ActionForm.java`)
- Form validation → Action messages: records errors (evidence: `src/share/org/apache/struts/validator/FieldChecks.java`)
- HTML tags → Tag utilities: uses utilities (evidence: `src/share/org/apache/struts/taglib/html/BaseHandlerTag.java`)
- Bean tags → Tag utilities: uses utilities (evidence: `src/share/org/apache/struts/taglib/bean/WriteTag.java`)
- Logic tags → Tag utilities: uses utilities (evidence: `src/share/org/apache/struts/taglib/logic/IterateTag.java`)
- Tiles tags → Component context: uses context (evidence: `src/share/org/apache/struts/taglib/tiles/InsertTag.java`)
- Action controller → Tile controller: implements controller (evidence: `src/share/org/apache/struts/tiles/ActionController.java`)
- Action controller → Component context: uses context (evidence: `src/share/org/apache/struts/tiles/ActionController.java`)
- Tiles tags → Tile definitions: resolves definitions
- Message resources → Bean tags: localizes output (evidence: `src/share/org/apache/struts/taglib/bean/WriteTag.java`)
