Struts 2 Architecture and Request Lifecycle
Site Admin
· 11 Sep 2026
· 2 views
Framework Components
- FilterDispatcher - the front controller; every request passes through it.
- ActionMapper - maps a URL like
/login.actionto an action name. - ActionProxy - finds and invokes the action class.
- Interceptors - reusable services applied around an action (validation, file upload, parameters).
- Result - what to render after the action (forward to JSP, redirect, JSON).

The Request Pipeline
- Browser requests
/login.action. - FilterDispatcher intercepts and matches an action via ActionMapper.
- The action class is instantiated and an ActionContext is created.
- Interceptors run (params, validation, workflow).
- The action method executes and returns a result code (success/error).
- The framework renders the mapped result view.
Key Points
- The dispatcher is configured in web.xml for
*.action(or /*). - Interceptors wrap every action request transparently.
- Results map result codes to views in struts.xml.